| Attach data to the script object |
| Declaration: |
| int ferite_script_attach_data( FeriteScript *script, char *key, void *data, FeriteAttachedDataCleanup cleanup ) |
| Parameters: |
| Parameter #1: FeriteScript *script - The script to attach data to |
| Parameter #2: char *key - The name of the data |
| Parameter #3: void *data - The data to attach |
| Parameter #4: FeriteAttachedDataCleanup cleanup - A pointer to the function to be run when the data is removed. If NULL, no function will be called. |
| Returns: |
| A integer id that will represent the data |