return string error message for error object at top of stack
| 42 | |
| 43 | // return string error message for error object at top of stack |
| 44 | static const char *get_error_object_message(lua_State *L) { |
| 45 | const char *m = lua_tostring(L, -1); |
| 46 | if (!m) { // error object is not stringifiable |
| 47 | return "<error>"; |
| 48 | } |
| 49 | return m; |
| 50 | } |
| 51 | |
| 52 | lua_scripts::lua_scripts(const AP_Int32 &vm_steps, const AP_Int32 &heap_size, AP_Int8 &debug_options) |
| 53 | : _vm_steps(vm_steps), |
no outgoing calls
no test coverage detected