All pastes #420316 Raw Edit

Untitled

public lua v1 · immutable
·published 2007-04-02 01:33 UTC
rendered paste body
int 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	}}