Module tvm.specials
- Include file for the transterpreter's magical C hooks for Windows/Unix systems
Include file for the transterpreter's magical C hooks for Windows/Unix systems.
Maintainer:
Damian Dimmich <djd20@kent.ac.uk>
Index
-
Process
tvm.debug.int
- Print a debug integer from anywhere in your code -
Process
tvm.debug.str
- Print a debug string from anywhere in your code -
Process
tvm.exit
- Set an exit code for the transterpreter -
Process
tvm.get.cmdline.ptr
- Returns a pointer to argc and the number argv (the C command line arguments) -
Process
tvm.get.version
- Returns a string with the transterpreter's version number that is being used
Declarations
tvmspecials.inc
:9Process tvm.get.cmdline.ptr
PROC tvm.get.cmdline.ptr (RESULT INT argc, RESULT INT argv)
Returns a pointer to argc and the number argv (the C command line arguments).
Parameters:
RESULT INT |
argc |
pointer to argc |
RESULT INT |
argv |
the number of elements in the array argc |
tvmspecials.inc
:16Process tvm.get.version
PROC tvm.get.version (RESULT []BYTE version)
Returns a string with the transterpreter's version number that is being used.
Parameters:
RESULT []BYTE |
version |
the string that will contain the version number of the transterpreter. |
tvmspecials.inc
:25Process tvm.exit
PROC tvm.exit (INT exit.code)
Set an exit code for the transterpreter
Parameters:
INT |
exit.code |
The exit code that you want to set. This becomes the parameter to C's exit() function. |
tvmspecials.inc
:32Process tvm.debug.str
PROC tvm.debug.str (VAL []BYTE debug.str)
Print a debug string from anywhere in your code
Parameters:
VAL []BYTE |
debug.str |
the string that you want to print |
tvmspecials.inc
:39Process tvm.debug.int
PROC tvm.debug.int (VAL INT debug.int)
Print a debug integer from anywhere in your code
Parameters:
VAL INT |
debug.int |
the integer that you want to print |