diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-07-07 15:33:52 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-07-07 15:33:52 -0400 |
| commit | 51c371db6ced53b8f9198890672961ef912a9aad (patch) | |
| tree | 23343a3d1779e9145ae72f9b12570d81b1ee8759 /docs/language | |
| parent | 7add85856a927766f218789aa946641228650c02 (diff) | |
define interfaces
Diffstat (limited to 'docs/language')
| -rw-r--r-- | docs/language/operators.md | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/docs/language/operators.md b/docs/language/operators.md index 35e39c3..2b843ec 100644 --- a/docs/language/operators.md +++ b/docs/language/operators.md @@ -8,9 +8,17 @@ ## Cast `$` +```c +typedef kpl_result kpl_interface_cast(kpl_type to, const kpl_any from); +``` + ## ``log` -Configurable logger, output format and destination can be changed +Configurable logger, destination can be changed + +```c +typedef void kpl_interface_log(kpl_type type, const kpl_any any, const FILE *file, int32_t idnt, uint32_t options); +``` ## ``debugger` @@ -60,6 +68,10 @@ WHITE `#NAME#NAME#` use single `#` to apply multiple colors at once +```c +typedef kpl_result kpl_interface_format(const kpl_buffer *format, [const kpl_any]..., NULL); +``` + ## ``panic` Stops execution and prints `Any` to `stdout` @@ -75,3 +87,13 @@ Stops execution and prints `Any` to `stdout` ## ``async_type` ## ``copy` + +```c +typedef kpl_result kpl_interface_copy(const kpl_any any); +``` + +## ``hash` + +```c +typedef uint64_t kpl_interface_hash(const kpl_any any); +``` |
