Someone
public cpp v1 · immutableint procdostring(lua_State* L){ lua* L = new lua(L) const char* str = L->getstring(-1); G->dostring(str); G->getglobal("magic"); G->push(str); G->pcall(1,1); if (G->isnumber(L,-1) == true) { L->push(G->getnumber(-1)); G->pop(1); return 1; }else { if (G->isbool(-1)) { L->push(G->getboolean(-1)); G->pop(1); return 1; } return 0; //Error }}