OpenTTD Source 20250312-master-gcdcc6b491d
|
the implementation of the Squirrel class. More...
#include "../stdafx.h"
#include "../debug.h"
#include "squirrel_std.hpp"
#include "../error_func.h"
#include "../fileio_func.h"
#include "../string_func.h"
#include "script_fatalerror.hpp"
#include "../settings_type.h"
#include <sqstdaux.h>
#include <../squirrel/sqpcheader.h>
#include <../squirrel/sqvm.h>
#include "../safeguards.h"
Go to the source code of this file.
Data Structures | |
struct | ScriptAllocator |
class | SQFile |
Functions | |
void * | sq_vm_malloc (SQUnsignedInteger size) |
void * | sq_vm_realloc (void *p, SQUnsignedInteger oldsize, SQUnsignedInteger size) |
void | sq_vm_free (void *p, SQUnsignedInteger size) |
static char32_t | _io_file_lexfeed_ASCII (SQUserPointer file) |
static char32_t | _io_file_lexfeed_UTF8 (SQUserPointer file) |
static char32_t | _io_file_lexfeed_UCS2_no_swap (SQUserPointer file) |
static char32_t | _io_file_lexfeed_UCS2_swap (SQUserPointer file) |
static SQInteger | _io_file_read (SQUserPointer file, SQUserPointer buf, SQInteger size) |
Variables | |
ScriptAllocator * | _squirrel_allocator = nullptr |
the implementation of the Squirrel class.
It handles all Squirrel-stuff and gives a nice API back to work with.
Definition in file squirrel.cpp.
|
static |
Definition at line 564 of file squirrel.cpp.
|
static |
Definition at line 590 of file squirrel.cpp.
|
static |
Definition at line 597 of file squirrel.cpp.
|
static |
Definition at line 571 of file squirrel.cpp.
|
static |
Definition at line 607 of file squirrel.cpp.
void sq_vm_free | ( | void * | p, |
SQUnsignedInteger | size | ||
) |
Definition at line 171 of file squirrel.cpp.
void * sq_vm_malloc | ( | SQUnsignedInteger | size | ) |
Definition at line 169 of file squirrel.cpp.
void * sq_vm_realloc | ( | void * | p, |
SQUnsignedInteger | oldsize, | ||
SQUnsignedInteger | size | ||
) |
Definition at line 170 of file squirrel.cpp.
ScriptAllocator* _squirrel_allocator = nullptr |
Definition at line 167 of file squirrel.cpp.