![]() |
Phasor 3.3.0
Stack VM based Programming Language
|
Phasor Standard library. More...
#include <StdLib.hpp>
Static Public Member Functions | |
| static void | registerFunctions (VM &vm) |
| static void | checkArgCount (const std::vector< Value > &args, size_t minimumArguments, const std::string &name, bool allowMoreArguments=false) |
| static void | registerFunctions (VM &vm) |
| static void | checkArgCount (const std::vector< Value > &args, size_t minimumArguments, const std::string &name, bool allowMoreArguments=false) |
Static Public Attributes | |
| static char ** | argv = nullptr |
| Command line arguments. | |
| static int | argc = 0 |
| Number of command line arguments. | |
Private Types | |
| enum class | dupenv_ret { Success = 0 , InvalidInput = 1 , NotFound = 2 , Success = 0 , InvalidInput = 1 , NotFound = 2 } |
| enum class | dupenv_ret { Success = 0 , InvalidInput = 1 , NotFound = 2 , Success = 0 , InvalidInput = 1 , NotFound = 2 } |
Static Private Member Functions | |
| static bool | std_import (const std::vector< Value > &args, VM *vm) |
| static Value | std_assert (const std::vector< Value > &args, VM *vm) |
| static dupenv_ret | dupenv (PhsString &out, const char *name) |
| static void | registerMetaFunctions (VM *vm) |
| static void | registerMemoryFunctions (VM *vm) |
| static void | registerMathFunctions (VM *vm) |
| static void | registerRandomFunctions (VM *vm) |
| static void | registerStringFunctions (VM *vm) |
| static void | registerTypeConvFunctions (VM *vm) |
| static void | registerFileFunctions (VM *vm) |
| static void | registerSysFunctions (VM *vm) |
| static void | registerIOFunctions (VM *vm) |
| static void | registerArrayFunctions (VM *vm) |
| static i64 | meta_operation (const std::vector< Value > &args, VM *vm) |
| static Value | meta_stack_run (const std::vector< Value > &args, VM *vm) |
| static PhsString | meta_get_version (const std::vector< Value > &args, VM *vm) |
| static Value | var_free (const std::vector< Value > &args, VM *vm) |
| Free a variable. | |
| static f64 | math_sqrt (const std::vector< Value > &args, VM *vm) |
| Square root. | |
| static f64 | math_pow (const std::vector< Value > &args, VM *vm) |
| Power. | |
| static Value | math_abs (const std::vector< Value > &args, VM *vm) |
| Absolute value. | |
| static f64 | math_floor (const std::vector< Value > &args, VM *vm) |
| Floor. | |
| static f64 | math_ceil (const std::vector< Value > &args, VM *vm) |
| Ceiling. | |
| static f64 | math_round (const std::vector< Value > &args, VM *vm) |
| Round. | |
| static Value | math_min (const std::vector< Value > &args, VM *vm) |
| Minimum. | |
| static Value | math_max (const std::vector< Value > &args, VM *vm) |
| Maximum. | |
| static f64 | math_log (const std::vector< Value > &args, VM *vm) |
| Natural logarithm. | |
| static f64 | math_exp (const std::vector< Value > &args, VM *vm) |
| Exponential. | |
| static f64 | math_sin (const std::vector< Value > &args, VM *vm) |
| Sine. | |
| static f64 | math_cos (const std::vector< Value > &args, VM *vm) |
| Cosine. | |
| static f64 | math_tan (const std::vector< Value > &args, VM *vm) |
| Tangent. | |
| static PhsString | file_absolute (const std::vector< Value > &args, VM *vm) |
| Get full path to relative path. | |
| static Value | file_read (const std::vector< Value > &args, VM *vm) |
| Read file. | |
| static bool | file_write (const std::vector< Value > &args, VM *vm) |
| Write to file. | |
| static bool | file_exists (const std::vector< Value > &args, VM *vm) |
| Check if file exists. | |
| static PhsString | file_read_line (const std::vector< Value > &args, VM *vm) |
| Read a line from file. | |
| static bool | file_write_line (const std::vector< Value > &args, VM *vm) |
| Write a line to file. | |
| static bool | file_append (const std::vector< Value > &args, VM *vm) |
| Append to file. | |
| static bool | file_delete (const std::vector< Value > &args, VM *vm) |
| Delete file. | |
| static bool | file_rename (const std::vector< Value > &args, VM *vm) |
| Rename file. | |
| static Value | file_current_directory (const std::vector< Value > &args, VM *vm) |
| Get/set working directory. | |
| static bool | file_copy (const std::vector< Value > &args, VM *vm) |
| Copy file. | |
| static bool | file_move (const std::vector< Value > &args, VM *vm) |
| Move file. | |
| static bool | file_property_edit (const std::vector< Value > &args, VM *vm) |
| static i64 | file_property_get (const std::vector< Value > &args, VM *vm) |
| static bool | file_create (const std::vector< Value > &args, VM *vm) |
| static Value | file_read_directory (const std::vector< Value > &args, VM *vm) |
| static bool | file_create_directory (const std::vector< Value > &args, VM *vm) |
| static bool | file_remove_directory (const std::vector< Value > &args, VM *vm) |
| static PhsString | file_join_path (const std::vector< Value > &args, VM *vm) |
| static PhsString | file_stem (const std::vector< Value > &args, VM *vm) |
| Get the stem of a path. | |
| static PhsString | file_filename (const std::vector< Value > &args, VM *vm) |
| Get the filename. | |
| static PhsString | file_extension (const std::vector< Value > &args, VM *vm) |
| Get the extension of a path. | |
| static bool | file_is_directory (const std::vector< Value > &args, VM *vm) |
| Check if path is directory. | |
| static PhsString | file_parent (const std::vector< Value > &args, VM *vm) |
| Get the parent of a path. | |
| static i64 | file_get_size (const std::vector< Value > &args, VM *vm) |
| static i64 | sys_get_free_memory (const std::vector< Value > &args, VM *vm) |
| Get current free memory. | |
| static Value | sys_wait_for_input (const std::vector< Value > &args, VM *vm) |
| Wait for input. | |
| static Value | sys_shell (const std::vector< Value > &args, VM *vm) |
| Run a shell command. | |
| static i64 | sys_fork (const std::vector< Value > &args, VM *vm) |
| Run a native program. | |
| static i64 | sys_fork_detached (const std::vector< Value > &args, VM *vm) |
| Run a native program detached. | |
| static Value | sys_crash (const std::vector< Value > &args, VM *vm) |
| Crash the VM / Program. | |
| static Value | sys_reset (const std::vector< Value > &args, VM *vm) |
| Reset the VM. | |
| static i64 | sys_pid (const std::vector< Value > &args, VM *vm) |
| Get the current process ID. | |
| static PhsString | sys_os (const std::vector< Value > &args, VM *vm) |
| Get the current OS. | |
| static Value | sys_isatty (const std::vector< Value > &args, VM *vm) |
| Check if the current output is a terminal. | |
| static Value | sys_env (const std::vector< Value > &args, VM *vm) |
| Get the current environment variables. | |
| static Value | sys_argv (const std::vector< Value > &args, VM *vm) |
| Get the current command line arguments – deprecated, use sys_args() instead. | |
| static i64 | sys_argc (const std::vector< Value > &args, VM *vm) |
| Get the current number of command line arguments – deprecated, use len(sys_args()) instead. | |
| static Value | sys_args (const std::vector< Value > &args, VM *vm) |
| Get args array. | |
| static f64 | sys_time (const std::vector< Value > &args, VM *vm) |
| Current time. | |
| static Value | sys_time_formatted (const std::vector< Value > &args, VM *vm) |
| Current time formatted. | |
| static Value | sys_sleep (const std::vector< Value > &args, VM *vm) |
| Sleep for a specified amount of time. | |
| static Value | sys_shutdown (const std::vector< Value > &args, VM *vm) |
| Shutdown the VM. | |
| static i64 | to_int (const std::vector< Value > &args, VM *vm) |
| Convert to integer. | |
| static f64 | to_float (const std::vector< Value > &args, VM *vm) |
| Convert to float. | |
| static PhsString | to_string (const std::vector< Value > &args, VM *vm) |
| Convert to string. | |
| static bool | to_bool (const std::vector< Value > &args, VM *vm) |
| Convert to boolean. | |
| static i64 | array_length (const std::vector< Value > &args, VM *vm) |
| Get array length. | |
| static Value | array_push (const std::vector< Value > &args, VM *vm) |
| Push to array. | |
| static Value | array_pop (const std::vector< Value > &args, VM *vm) |
| Pop from array. | |
| static Value | array_insert (const std::vector< Value > &args, VM *vm) |
| Insert into array. | |
| static Value | array_resize (const std::vector< Value > &args, VM *vm) |
| Resize array. | |
| static Value | rand_seed (const std::vector< Value > &args, VM *vm) |
| Seed the random number generator. | |
| static i64 | rand_next_range (const std::vector< Value > &args, VM *vm) |
| Get a random number in range. | |
| static f64 | rand_next_float (const std::vector< Value > &args, VM *vm) |
| Get a random float (technically a f64 at a low level). | |
| static i64 | str_find (const std::vector< Value > &args, VM *vm) |
| Find string in string. | |
| static i64 | str_len (const std::vector< Value > &args, VM *vm) |
| Get string length. | |
| static Value | str_char_at (const std::vector< Value > &args, VM *vm) |
| Get character at index. | |
| static Value | str_substr (const std::vector< Value > &args, VM *vm) |
| Get substring. | |
| static PhsString | str_concat (const std::vector< Value > &args, VM *vm) |
| Concatenate strings. | |
| static PhsString | str_upper (const std::vector< Value > &args, VM *vm) |
| Convert to uppercase. | |
| static PhsString | str_lower (const std::vector< Value > &args, VM *vm) |
| Convert to lowercase. | |
| static Value | str_starts_with (const std::vector< Value > &args, VM *vm) |
| Check if string starts with. | |
| static Value | str_ends_with (const std::vector< Value > &args, VM *vm) |
| Check if string ends with. | |
| static i64 | sb_new (const std::vector< Value > &args, VM *vm) |
| Create new string builder. | |
| static Value | sb_append (const std::vector< Value > &args, VM *vm) |
| Append to string builder. | |
| static PhsString | sb_to_string (const std::vector< Value > &args, VM *vm) |
| Convert string builder to string. | |
| static Value | sb_clear (const std::vector< Value > &args, VM *vm) |
| Clear string builder. | |
| static PhsString | sb_free (const std::vector< Value > &args, VM *vm) |
| Free string builder. | |
| static PhsString | io_c_format (const std::vector< Value > &args, VM *vm) |
| Format string. | |
| static Value | io_clear (const std::vector< Value > &args, VM *vm) |
| Clear the console. | |
| static PhsString | io_prints (const std::vector< Value > &args, VM *vm) |
| Print string without newline. | |
| static PhsString | io_printf (const std::vector< Value > &args, VM *vm) |
| Print formatted string. | |
| static PhsString | io_puts (const std::vector< Value > &args, VM *vm) |
| Print string with newline. | |
| static PhsString | io_putf (const std::vector< Value > &args, VM *vm) |
| Print formatted string with newline. | |
| static Value | io_gets (const std::vector< Value > &args, VM *vm) |
| Get string. | |
| static PhsString | io_putf_error (const std::vector< Value > &args, VM *vm) |
| Print formatted string with newline to error output. | |
| static PhsString | io_puts_error (const std::vector< Value > &args, VM *vm) |
| Print string with newline to error output. | |
| static bool | std_import (const std::vector< Value > &args, VM *vm) |
| static Value | std_assert (const std::vector< Value > &args, VM *vm) |
| static dupenv_ret | dupenv (PhsString &out, const char *name) |
| static void | registerMetaFunctions (VM *vm) |
| static void | registerMemoryFunctions (VM *vm) |
| static void | registerMathFunctions (VM *vm) |
| static void | registerRandomFunctions (VM *vm) |
| static void | registerStringFunctions (VM *vm) |
| static void | registerTypeConvFunctions (VM *vm) |
| static void | registerFileFunctions (VM *vm) |
| static void | registerSysFunctions (VM *vm) |
| static void | registerIOFunctions (VM *vm) |
| static i64 | meta_operation (const std::vector< Value > &args, VM *vm) |
| static Value | meta_stack_run (const std::vector< Value > &args, VM *vm) |
| static PhsString | meta_get_version (const std::vector< Value > &args, VM *vm) |
| static Value | var_free (const std::vector< Value > &args, VM *vm) |
| Free a variable. | |
| static f64 | math_sqrt (const std::vector< Value > &args, VM *vm) |
| Square root. | |
| static f64 | math_pow (const std::vector< Value > &args, VM *vm) |
| Power. | |
| static Value | math_abs (const std::vector< Value > &args, VM *vm) |
| Absolute value. | |
| static f64 | math_floor (const std::vector< Value > &args, VM *vm) |
| Floor. | |
| static f64 | math_ceil (const std::vector< Value > &args, VM *vm) |
| Ceiling. | |
| static f64 | math_round (const std::vector< Value > &args, VM *vm) |
| Round. | |
| static Value | math_min (const std::vector< Value > &args, VM *vm) |
| Minimum. | |
| static Value | math_max (const std::vector< Value > &args, VM *vm) |
| Maximum. | |
| static f64 | math_log (const std::vector< Value > &args, VM *vm) |
| Natural logarithm. | |
| static f64 | math_exp (const std::vector< Value > &args, VM *vm) |
| Exponential. | |
| static f64 | math_sin (const std::vector< Value > &args, VM *vm) |
| Sine. | |
| static f64 | math_cos (const std::vector< Value > &args, VM *vm) |
| Cosine. | |
| static f64 | math_tan (const std::vector< Value > &args, VM *vm) |
| Tangent. | |
| static PhsString | file_absolute (const std::vector< Value > &args, VM *vm) |
| Get full path to relative path. | |
| static Value | file_read (const std::vector< Value > &args, VM *vm) |
| Read file. | |
| static bool | file_write (const std::vector< Value > &args, VM *vm) |
| Write to file. | |
| static bool | file_exists (const std::vector< Value > &args, VM *vm) |
| Check if file exists. | |
| static PhsString | file_read_line (const std::vector< Value > &args, VM *vm) |
| Read a line from file. | |
| static bool | file_write_line (const std::vector< Value > &args, VM *vm) |
| Write a line to file. | |
| static bool | file_append (const std::vector< Value > &args, VM *vm) |
| Append to file. | |
| static bool | file_delete (const std::vector< Value > &args, VM *vm) |
| Delete file. | |
| static bool | file_rename (const std::vector< Value > &args, VM *vm) |
| Rename file. | |
| static Value | file_current_directory (const std::vector< Value > &args, VM *vm) |
| Get/set working directory. | |
| static bool | file_copy (const std::vector< Value > &args, VM *vm) |
| Copy file. | |
| static bool | file_move (const std::vector< Value > &args, VM *vm) |
| Move file. | |
| static bool | file_property_edit (const std::vector< Value > &args, VM *vm) |
| static i64 | file_property_get (const std::vector< Value > &args, VM *vm) |
| static bool | file_create (const std::vector< Value > &args, VM *vm) |
| static Value | file_read_directory (const std::vector< Value > &args, VM *vm) |
| static bool | file_create_directory (const std::vector< Value > &args, VM *vm) |
| static bool | file_remove_directory (const std::vector< Value > &args, VM *vm) |
| static PhsString | file_join_path (const std::vector< Value > &args, VM *vm) |
| static PhsString | file_stem (const std::vector< Value > &args, VM *vm) |
| Get the stem of a path. | |
| static PhsString | file_filename (const std::vector< Value > &args, VM *vm) |
| Get the filename. | |
| static PhsString | file_extension (const std::vector< Value > &args, VM *vm) |
| Get the extension of a path. | |
| static bool | file_is_directory (const std::vector< Value > &args, VM *vm) |
| Check if path is directory. | |
| static PhsString | file_parent (const std::vector< Value > &args, VM *vm) |
| Get the parent of a path. | |
| static i64 | file_get_size (const std::vector< Value > &args, VM *vm) |
| static i64 | sys_get_free_memory (const std::vector< Value > &args, VM *vm) |
| Get current free memory. | |
| static Value | sys_wait_for_input (const std::vector< Value > &args, VM *vm) |
| Wait for input. | |
| static Value | sys_shell (const std::vector< Value > &args, VM *vm) |
| Run a shell command. | |
| static i64 | sys_fork (const std::vector< Value > &args, VM *vm) |
| Run a native program. | |
| static i64 | sys_fork_detached (const std::vector< Value > &args, VM *vm) |
| Run a native program detached. | |
| static Value | sys_crash (const std::vector< Value > &args, VM *vm) |
| Crash the VM / Program. | |
| static Value | sys_reset (const std::vector< Value > &args, VM *vm) |
| Reset the VM. | |
| static i64 | sys_pid (const std::vector< Value > &args, VM *vm) |
| Get the current process ID. | |
| static PhsString | sys_os (const std::vector< Value > &args, VM *vm) |
| Get the current OS. | |
| static Value | sys_isatty (const std::vector< Value > &args, VM *vm) |
| Check if the current output is a terminal. | |
| static Value | sys_env (const std::vector< Value > &args, VM *vm) |
| Get the current environment variables. | |
| static Value | sys_argv (const std::vector< Value > &args, VM *vm) |
| Get the current command line arguments. | |
| static i64 | sys_argc (const std::vector< Value > &args, VM *vm) |
| Get the current number of command line arguments. | |
| static f64 | sys_time (const std::vector< Value > &args, VM *vm) |
| Current time. | |
| static Value | sys_time_formatted (const std::vector< Value > &args, VM *vm) |
| Current time formatted. | |
| static Value | sys_sleep (const std::vector< Value > &args, VM *vm) |
| Sleep for a specified amount of time. | |
| static Value | sys_shutdown (const std::vector< Value > &args, VM *vm) |
| Shutdown the VM. | |
| static i64 | to_int (const std::vector< Value > &args, VM *vm) |
| Convert to integer. | |
| static f64 | to_float (const std::vector< Value > &args, VM *vm) |
| Convert to float. | |
| static PhsString | to_string (const std::vector< Value > &args, VM *vm) |
| Convert to string. | |
| static bool | to_bool (const std::vector< Value > &args, VM *vm) |
| Convert to boolean. | |
| static Value | rand_seed (const std::vector< Value > &args, VM *vm) |
| Seed the random number generator. | |
| static i64 | rand_next_range (const std::vector< Value > &args, VM *vm) |
| Get a random number in range. | |
| static f64 | rand_next_float (const std::vector< Value > &args, VM *vm) |
| Get a random float (technically a f64 at a low level). | |
| static i64 | str_find (const std::vector< Value > &args, VM *vm) |
| Find string in string. | |
| static i64 | str_len (const std::vector< Value > &args, VM *vm) |
| Get string length. | |
| static Value | str_char_at (const std::vector< Value > &args, VM *vm) |
| Get character at index. | |
| static Value | str_substr (const std::vector< Value > &args, VM *vm) |
| Get substring. | |
| static PhsString | str_concat (const std::vector< Value > &args, VM *vm) |
| Concatenate strings. | |
| static PhsString | str_upper (const std::vector< Value > &args, VM *vm) |
| Convert to uppercase. | |
| static PhsString | str_lower (const std::vector< Value > &args, VM *vm) |
| Convert to lowercase. | |
| static Value | str_starts_with (const std::vector< Value > &args, VM *vm) |
| Check if string starts with. | |
| static Value | str_ends_with (const std::vector< Value > &args, VM *vm) |
| Check if string ends with. | |
| static i64 | sb_new (const std::vector< Value > &args, VM *vm) |
| Create new string builder. | |
| static Value | sb_append (const std::vector< Value > &args, VM *vm) |
| Append to string builder. | |
| static PhsString | sb_to_string (const std::vector< Value > &args, VM *vm) |
| Convert string builder to string. | |
| static Value | sb_clear (const std::vector< Value > &args, VM *vm) |
| Clear string builder. | |
| static PhsString | sb_free (const std::vector< Value > &args, VM *vm) |
| Free string builder. | |
| static PhsString | io_c_format (const std::vector< Value > &args, VM *vm) |
| Format string. | |
| static Value | io_clear (const std::vector< Value > &args, VM *vm) |
| Clear the console. | |
| static PhsString | io_prints (const std::vector< Value > &args, VM *vm) |
| Print string without newline. | |
| static PhsString | io_printf (const std::vector< Value > &args, VM *vm) |
| Print formatted string. | |
| static PhsString | io_puts (const std::vector< Value > &args, VM *vm) |
| Print string with newline. | |
| static PhsString | io_putf (const std::vector< Value > &args, VM *vm) |
| Print formatted string with newline. | |
| static Value | io_gets (const std::vector< Value > &args, VM *vm) |
| Get string. | |
| static PhsString | io_putf_error (const std::vector< Value > &args, VM *vm) |
| Print formatted string with newline to error output. | |
| static PhsString | io_puts_error (const std::vector< Value > &args, VM *vm) |
| Print string with newline to error output. | |
Phasor Standard library.
Contains all the base standard library functions used for any language targetting the Phasor Runtime
Definition at line 33 of file StdLib.hpp.
|
strongprivate |
| Enumerator | |
|---|---|
| Success | |
| InvalidInput | |
| NotFound | |
| Success | |
| InvalidInput | |
| NotFound | |
Definition at line 79 of file PhasorStdLib.hpp.
|
strongprivate |
| Enumerator | |
|---|---|
| Success | |
| InvalidInput | |
| NotFound | |
| Success | |
| InvalidInput | |
| NotFound | |
Definition at line 60 of file StdLib.hpp.
|
static |
|
static |
|
staticprivate |
|
staticprivate |
Definition at line 15 of file StdLib.cpp.
|
staticprivate |
Get full path to relative path.
Append to file.
Copy file.
|
staticprivate |
|
staticprivate |
Get/set working directory.
Delete file.
Check if file exists.
|
staticprivate |
Get the extension of a path.
|
staticprivate |
Get the filename.
Check if path is directory.
|
staticprivate |
Move file.
Get the parent of a path.
|
staticprivate |
Read file.
|
staticprivate |
|
staticprivate |
Read a line from file.
|
staticprivate |
Rename file.
Get the stem of a path.
Write to file.
Write a line to file.
Format string.
Clear the console.
Get string.
Print formatted string.
Print string without newline.
Print formatted string with newline.
|
staticprivate |
Print formatted string with newline to error output.
Print string with newline.
|
staticprivate |
Print string with newline to error output.
Absolute value.
Exponential.
Natural logarithm.
Maximum.
Minimum.
Square root.
|
staticprivate |
Get a random float (technically a f64 at a low level).
Get a random float (technically a f64 at a low level).
Definition at line 43 of file random.cpp.
Get a random number in range.
Get a random number in range.
Definition at line 29 of file random.cpp.
Seed the random number generator.
Seed the random number generator.
Definition at line 14 of file random.cpp.
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
inlinestatic |
|
inlinestatic |
Definition at line 36 of file StdLib.hpp.
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
Definition at line 6 of file memory.cpp.
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
Definition at line 7 of file random.cpp.
|
staticprivate |
|
staticprivate |
Definition at line 8 of file string.cpp.
|
staticprivate |
|
staticprivate |
Definition at line 34 of file system.cpp.
|
staticprivate |
|
staticprivate |
Definition at line 7 of file typeconv.cpp.
Append to string builder.
Append to string builder.
Definition at line 91 of file string.cpp.
Clear string builder.
Clear string builder.
Definition at line 121 of file string.cpp.
Free string builder.
Free string builder.
Definition at line 112 of file string.cpp.
Create new string builder.
Create new string builder.
Definition at line 73 of file string.cpp.
Convert string builder to string.
Convert string builder to string.
Definition at line 102 of file string.cpp.
Definition at line 109 of file StdLib.cpp.
Definition at line 59 of file StdLib.cpp.
Get character at index.
Get character at index.
Definition at line 131 of file string.cpp.
Concatenate strings.
Concatenate strings.
Definition at line 164 of file string.cpp.
Check if string ends with.
Check if string ends with.
Definition at line 210 of file string.cpp.
Find string in string.
Find string in string.
Definition at line 39 of file string.cpp.
Get string length.
Get string length.
Definition at line 175 of file string.cpp.
Convert to lowercase.
Convert to lowercase.
Definition at line 190 of file string.cpp.
Check if string starts with.
Check if string starts with.
Definition at line 198 of file string.cpp.
Get substring.
Get substring.
Definition at line 145 of file string.cpp.
Convert to uppercase.
Convert to uppercase.
Definition at line 182 of file string.cpp.
Get the current number of command line arguments.
Get the current number of command line arguments – deprecated, use len(sys_args()) instead.
Definition at line 142 of file system.cpp.
Get args array.
Definition at line 156 of file system.cpp.
Get the current command line arguments.
Get the current command line arguments – deprecated, use sys_args() instead.
Definition at line 148 of file system.cpp.
Definition at line 240 of file system.cpp.
Get the current environment variables.
Get the current environment variables.
Definition at line 131 of file system.cpp.
Run a native program.
Run a native program.
Definition at line 214 of file system.cpp.
Run a native program detached.
Run a native program detached.
Definition at line 227 of file system.cpp.
|
staticprivate |
Get current free memory.
|
staticprivate |
Get current free memory.
Definition at line 195 of file system.cpp.
Check if the current output is a terminal.
Check if the current output is a terminal.
Definition at line 265 of file system.cpp.
Get the current OS.
Get the current OS.
Definition at line 177 of file system.cpp.
Get the current process ID.
Get the current process ID.
Definition at line 255 of file system.cpp.
Reset the VM.
Reset the VM.
Definition at line 248 of file system.cpp.
Run a shell command.
Run a shell command.
Definition at line 208 of file system.cpp.
Shutdown the VM.
Shutdown the VM.
Definition at line 167 of file system.cpp.
Sleep for a specified amount of time.
Sleep for a specified amount of time.
Definition at line 123 of file system.cpp.
Current time.
Current time.
Definition at line 90 of file system.cpp.
|
staticprivate |
Current time formatted.
|
staticprivate |
Current time formatted.
Definition at line 99 of file system.cpp.
|
staticprivate |
Wait for input.
|
staticprivate |
Wait for input.
Definition at line 201 of file system.cpp.
Convert to boolean.
Convert to boolean.
Definition at line 50 of file typeconv.cpp.
Convert to float.
Convert to float.
Definition at line 38 of file typeconv.cpp.
Convert to integer.
Convert to integer.
Definition at line 15 of file typeconv.cpp.
Convert to string.
Convert to string.
Definition at line 44 of file typeconv.cpp.
Free a variable.
Free a variable.
Definition at line 11 of file memory.cpp.
|
static |
Number of command line arguments.
Definition at line 49 of file StdLib.hpp.
|
static |
Command line arguments.
Definition at line 48 of file StdLib.hpp.