QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
script_s Struct Reference
Collaboration diagram for script_s:
[legend]

Data Fields

void(* error )(struct script_s *script, const char *msg)
 if set, will be called instead of the internal error handler More...
 
const char * file
 name of the file being processed. used only for error reporting More...
 
int line
 line number of the file being processed. More...
 
int no_quote_lines
 if set, multi line quoted tokens will be treated as errors More...
 
const char * p
 current position within the script More...
 
const char * single
 if set, characters in this string will always be lexed as single character tokens. More...
 
struct dstring_stoken
 The current (or next when unget is true) token. More...
 
qboolean unget
 True if the last token has been pushed back. More...
 

Field Documentation

void(* error)(struct script_s *script, const char *msg)

if set, will be called instead of the internal error handler

const char* file

name of the file being processed. used only for error reporting

int line

line number of the file being processed.

used only for error reporting but updated internally.

int no_quote_lines

if set, multi line quoted tokens will be treated as errors

const char* p

current position within the script

const char* single

if set, characters in this string will always be lexed as single character tokens.

If not set, defaults to "{}()':". Set to "" (empty string) to disable. Not set by default.

struct dstring_s* token

The current (or next when unget is true) token.

qboolean unget

True if the last token has been pushed back.


The documentation for this struct was generated from the following file: