Following global constants are defined:
OpenEuphoria 4.1 running on 64-bit Linux
OpenEuphoria 4.1 running on 32-bit Linux
OpenEuphoria 4.0 running on Linux
always considered as 32-bit even on 64-bit OSes
Euphoria 3.1 running on Linux
always considered as 32-bit even on 64-bit OSes
OpenEuphoria 4.1 running on 64-bit Windows
OpenEuphoria 4.1 running on 32-bit Windows
OpenEuphoria 4.0 running on Windows
always considered as 32-bit even on 64-bit OSes
Euphoria 3.1 running on Windows
always considered as 32-bit even on 64-bit OSes
Following global variables are defined:
One of following constants:
EU_4_1_LNX_64, EU_4_1_LNX_32, EU_4_0_LNX, EU_3_1_LNX,
EU_4_1_WIN_64, EU_4_1_WIN_32, EU_4_0_WIN, EU_3_1_WIN
system architecture
* "x86" or "AMD64" on Windows
* "i686" or "x86_64" on Linux
* "unknown" on others OSes
address length for pointers
* 4 on 32-bit OSes
* 8 on 64-bit OSes
default debug file handle: defaults to 0 (no_debug)
set f_debug to 1 to debug on standard output
open a file in write text mode "w" and set f_debug to its handle
to debug to a fileex: f_debug = open("debug.log", "w")
if set, log_puts and log_printf will write to debug file
defaults to 1 (write to debug file)
directory where the program is located. Defaults to ".".
Dummy object used when function return value is unusedex: void = change_directory("..")
Following global procedures are defined:
puts a sequence in the debug file if open
Params:the message to put in the debug file
log_printf
prints a formatted sequence in the debug file if open
Params:the format of the value to put in the debug file
the value to put in the debug file
log_puts
logs an error
Params:error message to log/display
abort (1) or not (0)
logs an error and displays a warning
then abort if quit is set
if atom(o) then
error_message(sprintf("Unknown option '%d'", {option}), 1)
end if
Following global functions are defined:
extracts an option value form a list of options
Params:name associated to a value
list of pairs {name, value}
object: value associated with specified mane
search_field = get_option("search_field", optional, 1)
returns optional value associated with "search_field" in sequence optional
defaults to 1 if not found
example of a call to the parent function:
find_in_array(2, {{"first",1},{"second",2}}, {{"search_field",2}})
returns eu_version as a string
Return:One of following strings:
"EU_4_1_LNX_64", "EU_4_1_LNX_32", "EU_4_0_LNX", "EU_3_1_LNX",
"EU_4_1_WIN_64", "EU_4_1_WIN_32", "EU_4_0_WIN", "EU_3_1_WIN"
printf(1, "eu_version_name() = %s\n", {eu_version_name()})
eu_version_name() = EU_3_1_WIN