Browse Source

Changed the namespace "os" from class to table.

mingodad 13 năm trước cách đây
mục cha
commit
af1d241b6d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      sqstdlib/sqstdsystem.cpp

+ 1 - 1
sqstdlib/sqstdsystem.cpp

@@ -521,7 +521,7 @@ static SQRegFunction systemlib_funcs[]={
 SQInteger sqstd_register_systemlib(HSQUIRRELVM v)
 {
     sq_pushstring(v,_SC("os"),-1);
-    sq_newclass(v,SQFalse);
+    sq_newtable(v);
 
 	SQInteger i=0;
 	while(systemlib_funcs[i].name!=0)