py_compile method

bool py_compile(
  1. Pointer<Char> source,
  2. Pointer<Char> filename,
  3. int mode,
  4. bool is_dynamic,
)

Compile a source string into a code object. Use python's exec() or eval() to execute it.

Implementation

bool py_compile(
  ffi.Pointer<ffi.Char> source,
  ffi.Pointer<ffi.Char> filename,
  int mode,
  bool is_dynamic,
) {
  return _py_compile(
    source,
    filename,
    mode,
    is_dynamic,
  );
}