@@ -113,6 +113,7 @@ typedef enum {
113113 E_INVALID_AMOUNT_SET_EXPRESSION ,
114114 E_INVALID_IDENTIFIER ,
115115 E_NOT_ITERABLE ,
116+ E_MASTER_MUST_BE_IN_CLASS ,
116117
117118 // standard library errors
118119 E_FILE_NOT_FOUND ,
@@ -306,30 +307,30 @@ extern void free_ValueArray(ValueArray* array);
306307extern void destroyValueArray (ValueArray * array );
307308
308309extern void init_ValueObject (ValueObject * object );
309- extern void write_ValueObject (ValueObject * object , char * key , Value value );
310+ extern void write_ValueObject (ValueObject * object , Value key , Value value );
310311extern void free_ValueObject (ValueObject * object );
311312
312313/**
313314 * @brief Checks if an object has a key.
314315 * @param object The object to check.
315316 * @param key The key to check for.
316317 */
317- extern bool hasKey (ValueObject * object , char * key );
318+ extern bool hasKey (ValueObject * object , Value key );
318319
319320/**
320321 * @brief Gets the value at a specific key in an object.
321322 * @param object The object to get the value from.
322323 * @param key The key to get the value from.
323324 * @return The value at the key, or NULL if the key does not exist.
324325 */
325- extern Value * getValueAtKey (ValueObject * object , char * key );
326+ extern Value * getValueAtKey (ValueObject * object , Value key );
326327
327328/**
328329 * @brief Removes a key from an object, this does safely destroy the value and the key of the object.
329330 * @param object The object to remove the key from.
330331 * @param key The key to remove.
331332 */
332- extern void removeFromKey (ValueObject * object , char * key );
333+ extern void removeFromKey (ValueObject * object , Value key );
333334
334335/// virtual-machine.h
335336/// This part of the library is responsible for handling virtual machine gc generation and running.
0 commit comments