Use the unit type correctly instead of null references.

This commit is contained in:
2018-06-02 16:06:13 -07:00
parent 8207f1f450
commit 62dd41e634
4 changed files with 46 additions and 23 deletions

View File

@@ -182,6 +182,13 @@ void libab_get_type_function_list(libab* ab, libab_ref* into);
*/
void libab_get_type_unit(libab* ab, libab_ref* into);
/**
* Gets the unit value form this libab instance.
* @param ab the instance to get the unit value from.
* @param into the reference into which to store the unit value.
*/
void libab_get_unit_value(libab* ab, libab_ref* into);
/**
* Executes the given string of code.
* @param ab the libabacus instance to use for executing code.