Source

opycaml / auto.h

Full commit
#include "api_ml.h"

#include "autoclasses.h"

#define unit_or_fail_c2ml(p) (Plus_or_fail(*p))
#define bool_or_fail_c2ml(p) (Plus_or_fail(*p))
#define size_or_fail_c2ml(p) (Plus_or_fail(*p))
#define hash_or_fail_c2ml(p) (Hash_or_fail(*p))
typedef int unit_or_fail;
typedef int bool_or_fail;
typedef int size_or_fail;
typedef long hash_or_fail;

// [wrap] wrappers
#define PyType_HasFeature_wrap(o,i) PyType_HasFeature((PyTypeObject*)o,i)
#define PyType_IS_GC_wrap(o) PyType_IS_GC((PyTypeObject*)o)
#define PyType_IsSubtype_wrap(o,i) PyType_IsSubtype((PyTypeObject*)o,i)
#define PyType_Modified_wrap(o) PyType_Modified((PyTypeObject*)o)