diff options
author | truebrain <truebrain@openttd.org> | 2011-11-23 13:37:48 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-11-23 13:37:48 +0000 |
commit | 54ec3a2a3f6b130251dca48662db8aca605141b8 (patch) | |
tree | c7e553fa0e698aa7f113a893aa957df9cb994f60 /src/script/squirrel.cpp | |
parent | f4735ce234544eddcc21ccee4612509a78b8502d (diff) | |
download | openttd-54ec3a2a3f6b130251dca48662db8aca605141b8.tar.xz |
(svn r23293) -Codechange: make LoadScript/LoadFile non-static
Diffstat (limited to 'src/script/squirrel.cpp')
-rw-r--r-- | src/script/squirrel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/squirrel.cpp b/src/script/squirrel.cpp index e0f50f1d9..a3697dcb4 100644 --- a/src/script/squirrel.cpp +++ b/src/script/squirrel.cpp @@ -425,7 +425,7 @@ static SQInteger _io_file_read(SQUserPointer file, SQUserPointer buf, SQInteger return ret; } -/* static */ SQRESULT Squirrel::LoadFile(HSQUIRRELVM vm, const char *filename, SQBool printerror) +SQRESULT Squirrel::LoadFile(HSQUIRRELVM vm, const char *filename, SQBool printerror) { size_t size; FILE *file = FioFOpenFile(filename, "rb", AI_DIR, &size); @@ -477,7 +477,7 @@ static SQInteger _io_file_read(SQUserPointer file, SQUserPointer buf, SQInteger return sq_throwerror(vm, _SC("cannot open the file")); } -/* static */ bool Squirrel::LoadScript(HSQUIRRELVM vm, const char *script, bool in_root) +bool Squirrel::LoadScript(HSQUIRRELVM vm, const char *script, bool in_root) { /* Make sure we are always in the root-table */ if (in_root) sq_pushroottable(vm); |