Ccode
From Mesham
Overview
This ccode[code,library,headers] function will embed the native C code represented by code for execution. No error checking is performed on Ccode, use at own risk!
- Pass: A string representing the C code (can be over multiple lines), optional library to link to, optional headers to link to. Strings must be delimited.
- Returns: Nothing
Example
ccode["int a=23;a++;"]; ccode["char * data=malloc(sizeof(char) * 10); sprintf(data,\"hello %d\",21); ","","<stdlib.h>"];
Note in the second ccode, how quotation marks " inside of the code require delimiting.


