|
@@ -21,20 +21,20 @@ Global Symbols
|
|
|
returns the value returned by the script or null if no value is returned.
|
|
returns the value returned by the script or null if no value is returned.
|
|
|
if the optional parameter 'raiseerror' is true, the compiler error handler is invoked
|
|
if the optional parameter 'raiseerror' is true, the compiler error handler is invoked
|
|
|
in case of a syntax error. If raiseerror is omitted or set to false, the compiler
|
|
in case of a syntax error. If raiseerror is omitted or set to false, the compiler
|
|
|
- error handler is not ivoked.
|
|
|
|
|
- When squirrel is compiled in unicode mode the function can handle different character ecodings,
|
|
|
|
|
|
|
+ error handler is not invoked.
|
|
|
|
|
+ When squirrel is compiled in unicode mode the function can handle different character encodings,
|
|
|
UTF8 with and without prefix and UCS-2 prefixed(both big endian an little endian).
|
|
UTF8 with and without prefix and UCS-2 prefixed(both big endian an little endian).
|
|
|
- If the source stream is not prefixed UTF8 ecoding is used as default.
|
|
|
|
|
|
|
+ If the source stream is not prefixed UTF8 encoding is used as default.
|
|
|
|
|
|
|
|
.. js:function:: loadfile(path, [raiseerror])
|
|
.. js:function:: loadfile(path, [raiseerror])
|
|
|
|
|
|
|
|
compiles a squirrel script or loads a precompiled one an returns it as as function.
|
|
compiles a squirrel script or loads a precompiled one an returns it as as function.
|
|
|
if the optional parameter 'raiseerror' is true, the compiler error handler is invoked
|
|
if the optional parameter 'raiseerror' is true, the compiler error handler is invoked
|
|
|
in case of a syntax error. If raiseerror is omitted or set to false, the compiler
|
|
in case of a syntax error. If raiseerror is omitted or set to false, the compiler
|
|
|
- error handler is not ivoked.
|
|
|
|
|
- When squirrel is compiled in unicode mode the function can handle different character ecodings,
|
|
|
|
|
|
|
+ error handler is not invoked.
|
|
|
|
|
+ When squirrel is compiled in unicode mode the function can handle different character encodings,
|
|
|
UTF8 with and without prefix and UCS-2 prefixed(both big endian an little endian).
|
|
UTF8 with and without prefix and UCS-2 prefixed(both big endian an little endian).
|
|
|
- If the source stream is not prefixed UTF8 ecoding is used as default.
|
|
|
|
|
|
|
+ If the source stream is not prefixed UTF8 encoding is used as default.
|
|
|
|
|
|
|
|
.. js:function:: writeclosuretofile(destpath, closure)
|
|
.. js:function:: writeclosuretofile(destpath, closure)
|
|
|
|
|
|
|
@@ -230,9 +230,9 @@ Script loading and serialization
|
|
|
:returns: an SQRESULT
|
|
:returns: an SQRESULT
|
|
|
|
|
|
|
|
Compiles a squirrel script or loads a precompiled one an pushes it as closure in the stack.
|
|
Compiles a squirrel script or loads a precompiled one an pushes it as closure in the stack.
|
|
|
- When squirrel is compiled in unicode mode the function can handle different character ecodings,
|
|
|
|
|
|
|
+ When squirrel is compiled in unicode mode the function can handle different character encodings,
|
|
|
UTF8 with and without prefix and UCS-2 prefixed(both big endian an little endian).
|
|
UTF8 with and without prefix and UCS-2 prefixed(both big endian an little endian).
|
|
|
- If the source stream is not prefixed UTF8 ecoding is used as default.
|
|
|
|
|
|
|
+ If the source stream is not prefixed UTF8 encoding is used as default.
|
|
|
|
|
|
|
|
.. c:function:: SQRESULT sqstd_dofile(HSQUIRRELVM v, const SQChar* filename, SQBool retval, SQBool printerror)
|
|
.. c:function:: SQRESULT sqstd_dofile(HSQUIRRELVM v, const SQChar* filename, SQBool retval, SQBool printerror)
|
|
|
|
|
|
|
@@ -245,9 +245,9 @@ Script loading and serialization
|
|
|
|
|
|
|
|
Compiles a squirrel script or loads a precompiled one and executes it.
|
|
Compiles a squirrel script or loads a precompiled one and executes it.
|
|
|
Optionally pushes the return value of the executed script in the stack.
|
|
Optionally pushes the return value of the executed script in the stack.
|
|
|
- When squirrel is compiled in unicode mode the function can handle different character ecodings,
|
|
|
|
|
|
|
+ When squirrel is compiled in unicode mode the function can handle different character encodings,
|
|
|
UTF8 with and without prefix and UCS-2 prefixed(both big endian an little endian).
|
|
UTF8 with and without prefix and UCS-2 prefixed(both big endian an little endian).
|
|
|
- If the source stream is not prefixed UTF8 ecoding is used as default. ::
|
|
|
|
|
|
|
+ If the source stream is not prefixed UTF8 encoding is used as default. ::
|
|
|
|
|
|
|
|
sq_pushroottable(v); //push the root table(were the globals of the script will are stored)
|
|
sq_pushroottable(v); //push the root table(were the globals of the script will are stored)
|
|
|
sqstd_dofile(v, _SC("test.nut"), SQFalse, SQTrue);// also prints syntax errors if any
|
|
sqstd_dofile(v, _SC("test.nut"), SQFalse, SQTrue);// also prints syntax errors if any
|