| 751 | } |
| 752 | |
| 753 | static long convertFunctionPointerToLongValue(void (*value)()) |
| 754 | { |
| 755 | /* |
| 756 | * This way of converting also can convert a 64bit pointer in a 32bit integer by truncating. |
| 757 | * This isn't the right way to convert pointers values and need to change by implementing a |
| 758 | * proper portable way to convert pointers to strings. |
| 759 | */ |
| 760 | long* long_value = (long*) &value; |
| 761 | return *long_value; |
| 762 | } |
| 763 | |
| 764 | SimpleString StringFrom(cpputest_longlong) |
| 765 | { |