Subversion Repositories eduke32

Rev

Rev 4456 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4456 Rev 4570
Line 119... Line 119...
119
the log (unless a maximum error count is exceeded). These also have a
119
the log (unless a maximum error count is exceeded). These also have a
120
_backtrace_ added. Additionally, errors not caught by a `pcall` result a
120
_backtrace_ added. Additionally, errors not caught by a `pcall` result a
121
permanent message to appear on the screen, containing the source file name and
121
permanent message to appear on the screen, containing the source file name and
122
line number.
122
line number.
123
123
124
*`print(...)`*::
124
*`print(str)`*::
125
The messages are printed to the OSD and the log. Color codes available in
125
Prints a single message to the OSD and the log. Color codes available in
126
EDuke32 (e.g. `^10` for dark red) are interpreted. Overriding `tostring` has no
126
EDuke32 (e.g. `^10` for dark red) are interpreted. Overriding `tostring` has no
127
effect on Lunatic's `print` as it uses the initial, built-in `tostring`
127
effect on Lunatic's `print` as it uses the initial, built-in `tostring`
128
function instead of looking it up in the global environment.
128
function instead of looking it up in the global environment.
129
129
130
*`printf(fmt, ...)`*::
130
*`printf(fmt, ...)`*::