| 766 | } |
| 767 | |
| 768 | lbug_state lbug_int128_t_to_string(lbug_int128_t int128_val, char** out_result) { |
| 769 | int128_t c_int128 = 0; |
| 770 | c_int128.low = int128_val.low; |
| 771 | c_int128.high = int128_val.high; |
| 772 | try { |
| 773 | *out_result = convertToOwnedCString(TypeUtils::toString(c_int128)); |
| 774 | } catch (ConversionException& e) { |
| 775 | return LbugError; |
| 776 | } |
| 777 | return LbugSuccess; |
| 778 | } |
| 779 | // TODO: bind all int128_t supported functions |
| 780 | |
| 781 | lbug_state lbug_value_get_float(lbug_value* value, float* out_result) { |