![]() |
LibGame
v0.4.0
The LG Game Engine - Copyright (C) 2024-2025 ETMSoftware
|
Functions | |
| char * | l_str_new2 (int n,...) |
| char * | l_str_cat2 (char *str, int n,...) |
| LG_Stack_i * | lg_stack_i_new (int max_n) |
| void | lg_stack_i_free (LG_Stack_i *s) |
| zboolean | push_i (LG_Stack_i *s, int v) |
| zboolean | pop_i (LG_Stack_i *s, int *v) |
| LG_Stack_f * | lg_stack_f_new (int max_n) |
| void | lg_stack_f_free (LG_Stack_f *s) |
| zboolean | push_f (LG_Stack_f *s, float v) |
| zboolean | pop_f (LG_Stack_f *s, float *v) |
| void | lg_stack_show_full_empty_errors (zboolean show_errors) |
=== Only amazingly convenient stuff ===
| char* l_str_new2 | ( | int | n, |
| ... | |||
| ) |
Dynamically create a new string made of n sub-strings
| n | Number of sub-strings |
| ... | Sequence of n sub-strings (const char *) |
| char* l_str_cat2 | ( | char * | str, |
| int | n, | ||
| ... | |||
| ) |
Dynamically concanate n sub-strings to a string created with l_str_new() or l_str_new2()
| str | A dynamically created string |
| n | Number of sub-strings |
| ... | Sequence of n sub-strings (const char *) |
| LG_Stack_i* lg_stack_i_new | ( | int | max_n | ) |
Create and init a new LG_Stack_i instance
| max_n | Max num of elements of the stack |
| void lg_stack_i_free | ( | LG_Stack_i * | s | ) |
Free a LG_Stack_i instance and all associated resources
| s | A LG_Stack_i instance |
| zboolean push_i | ( | LG_Stack_i * | s, |
| int | v | ||
| ) |
Push int value into LG_Stack_i
| s | Addr of LG_Stack_i |
| v | int value |
| zboolean pop_i | ( | LG_Stack_i * | s, |
| int * | v | ||
| ) |
Pop int value from LG_Stack_i
| s | Addr of LG_Stack_i |
| v | Addr of int |
| LG_Stack_f* lg_stack_f_new | ( | int | max_n | ) |
Create and init a new LG_Stack_f instance
| max_n | Max num of elements of the stack |
| void lg_stack_f_free | ( | LG_Stack_f * | s | ) |
Free a LG_Stack_f instance and all associated resources
| s | A LG_Stack_f instance |
| zboolean push_f | ( | LG_Stack_f * | s, |
| float | v | ||
| ) |
Push float value into LG_Stack_f
| s | Addr of LG_Stack_f |
| v | float value |
| zboolean pop_f | ( | LG_Stack_f * | s, |
| float * | v | ||
| ) |
Pop float value from LG_Stack_f
| s | Addr of LG_Stack_f |
| v | Addr of float |
| void lg_stack_show_full_empty_errors | ( | zboolean | show_errors | ) |
Show / don't show (= default) "Stack is full" / "Stack is empty" errors, which can be numerous
| show_errors |