Просмотр исходного кода

Added an observation to come back and lookt at it

mingodad 8 лет назад
Родитель
Сommit
540ec6a395
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      SquiLu/sqstdlib/sqstdio.cpp

+ 1 - 1
SquiLu/sqstdlib/sqstdio.cpp

@@ -206,7 +206,7 @@ static SQRESULT _file_close(HSQUIRRELVM v)
 //bindings
 //bindings
 #define _DECL_FILE_FUNC(name,nparams,typecheck) {_SC(#name),_file_##name,nparams,typecheck}
 #define _DECL_FILE_FUNC(name,nparams,typecheck) {_SC(#name),_file_##name,nparams,typecheck}
 static const SQRegFunction _file_methods[] = {
 static const SQRegFunction _file_methods[] = {
-    _DECL_FILE_FUNC(constructor,3,_SC("x")),
+    _DECL_FILE_FUNC(constructor,3,_SC("x")), //TODO if we change "x" to "xss" it stops working
     _DECL_FILE_FUNC(_typeof,1,_SC("x")),
     _DECL_FILE_FUNC(_typeof,1,_SC("x")),
     _DECL_FILE_FUNC(close,1,_SC("x")),
     _DECL_FILE_FUNC(close,1,_SC("x")),
     {NULL,(SQFUNCTION)0,0,NULL}
     {NULL,(SQFUNCTION)0,0,NULL}