From 33ab50556760a84d6754235e553c68ada2f35a63 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 6 Sep 2014 17:46:56 +0000 Subject: (svn r26774) -Cleanup [Squirrel]: remove _SC macro --- src/3rdparty/squirrel/etc/minimal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/3rdparty/squirrel/etc') diff --git a/src/3rdparty/squirrel/etc/minimal.c b/src/3rdparty/squirrel/etc/minimal.c index e6bdd0e89..dfbff0cc1 100644 --- a/src/3rdparty/squirrel/etc/minimal.c +++ b/src/3rdparty/squirrel/etc/minimal.c @@ -24,7 +24,7 @@ void call_foo(HSQUIRRELVM v, int n,float f,const SQChar *s) { SQInteger top = sq_gettop(v); //saves the stack size before the call sq_pushroottable(v); //pushes the global table - sq_pushstring(v,_SC("foo"),-1); + sq_pushstring(v,"foo",-1); if(SQ_SUCCEEDED(sq_get(v,-2))) { //gets the field 'foo' from the global table sq_pushroottable(v); //push the 'this' (in this case is the global table) sq_pushinteger(v,n); @@ -47,9 +47,9 @@ int main(int argc, char* argv[]) sq_setprintfunc(v, printfunc); //sets the print function sq_pushroottable(v); //push the root table(were the globals of the script will be stored) - if(SQ_SUCCEEDED(sqstd_dofile(v, _SC("test.nut"), SQFalse, SQTrue))) // also prints syntax errors if any + if(SQ_SUCCEEDED(sqstd_dofile(v, "test.nut", SQFalse, SQTrue))) // also prints syntax errors if any { - call_foo(v,1,2.5,_SC("teststring")); + call_foo(v,1,2.5,"teststring"); } sq_pop(v,1); //pops the root table -- cgit v1.2.3-70-g09d2