Files
mist/cbindgen.toml
2022-03-19 00:48:21 +01:00

28 lines
558 B
TOML

language = "C"
after_includes = """
#define MIST_ERROR(result) (result >> 16)
#define MIST_RESULT_CODE(result) (result & 0xFFFF)
#define MIST_IS_SUCCESS(result) (MIST_RESULT_CODE(result) == MistResult_Success)
#define MIST_IS_ERROR(result) (!MIST_IS_SUCCESS(result))
#define MIST_STEAM_INPUT_HANDLE_ALL_CONTROLLERS UINT64_MAX"""
header = """/* Autogenerated file, do not edit by hand. */
#ifndef mist_h
#define mist_h"""
trailer = """
#include "mist_callbacks.h"
#endif /* mist_h */
"""
includes = ["mist_results.h"]
[enum]
prefix_with_name = true