MCPcopy Create free account
hub / github.com/danomatika/ofxLua / _wrap_string_data

Function _wrap_string_data

src/bindings/glmBindings.cpp:3175–3180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3173 SWIG_fail_ptr("string_c_str",1,SWIGTYPE_p_std__string); } result = (char *)((std::string const *)arg1)->c_str();
3174 lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; fail: SWIGUNUSED; } lua_error(L); return 0; }
3175static int _wrap_string_data(lua_State* L) { { int SWIG_arg = 0; std::string *arg1 = (std::string *) 0 ; char *result = 0 ;
3176 SWIG_check_num_args("std::string::data",1,1)
3177 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("std::string::data",1,"std::string const *");
3178 if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_std__string,0))){
3179 SWIG_fail_ptr("string_data",1,SWIGTYPE_p_std__string); } result = (char *)((std::string const *)arg1)->data();
3180 lua_pushstring(L,(const char *)result); SWIG_arg++; return SWIG_arg; fail: SWIGUNUSED; } lua_error(L); return 0; }
3181static int _wrap_string_assign(lua_State* L) { { int SWIG_arg = 0; std::string *arg1 = (std::string *) 0 ;
3182 char *arg2 = (char *) 0 ; SWIG_check_num_args("std::string::assign",2,2)
3183 if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("std::string::assign",1,"std::string *");

Callers

nothing calls this directly

Calls 2

lua_pushstringFunction · 0.85
lua_errorFunction · 0.85

Tested by

no test coverage detected