static PyObject* jitter_jit(PyObject *self, PyObject *args) { const char* str; char * buf; Py_ssize_t count; PyObject * result; int i; if (!PyArg_ParseTuple(args, "z#", &str, &count)) { return NULL; } int buffer_size = (int)count; printf("Initiailzed Jitter with code size: %d bytes\n", buffer_size); int res = emit_to_rw_run_from_rx(str); result = PyLong_FromLong(res); return result; }
int main() { run_from_rwx(); // not safe emit_to_rw_run_from_rx(); // safer return 0; }