| 621 | |
| 622 | |
| 623 | ::hx::CppiaLoadedModule __scriptable_cppia_from_string(String inCode) |
| 624 | { |
| 625 | const unsigned char *code = (const unsigned char *)inCode.raw_ptr(); |
| 626 | int length = inCode.length; |
| 627 | #ifdef HX_SMART_STRINGS |
| 628 | if (inCode.isUTF16Encoded()) |
| 629 | { |
| 630 | code = (const unsigned char *)inCode.utf8_str(); |
| 631 | length = strlen( (const char *)code ); |
| 632 | } |
| 633 | #endif |
| 634 | |
| 635 | return hx::LoadCppia(code,length); |
| 636 | } |
| 637 | |
| 638 | |
| 639 | ::hx::CppiaLoadedModule __scriptable_cppia_from_data(Array<unsigned char> inCode) |