3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 13:28:47 +00:00

Merge pull request #1 from martin-neuhaeusser/my-ml-api

Use a custom block for storing a Z3_config in the ML bindings.
This commit is contained in:
Christoph M. Wintersteiger 2016-03-31 18:10:43 +01:00
commit f4c330ba5c

View file

@ -1376,8 +1376,10 @@ def mk_z3native_stubs_c(ml_dir): # C interface
ts = type2str(result)
if ml_has_plus_type(ts):
ml_wrapper.write('%s z3rv_m = ' % ts)
elif (result == BOOL or result == INT or result == UINT or result == PRINT_MODE or result == ERROR_CODE or result ==INT64 or result == UINT64 or result == DOUBLE or result == STRING):
ml_wrapper.write('%s z3rv = ' % ts)
else:
ml_wrapper.write('result = caml_alloc(%s, 0);\n ' % ret_size)
ml_wrapper.write('result = caml_alloc_custom(&default_custom_ops, sizeof(%s), 0, 1);\n ' % ts)
ml_wrapper.write('%s z3rv = ' % ts)
elif len(op) != 0: