automerge/automerge-c/test/macro_utils.h
Jason Kankiewicz 23fbb4917a Replace _INCLUDED with _H as the suffix for
include guards in C headers like the one generated by cbindgen.
2022-07-25 01:04:35 -07:00

24 lines
564 B
C

#ifndef MACRO_UTILS_H
#define MACRO_UTILS_H
/* local */
#include "automerge.h"
/**
* \brief Gets the result value discriminant corresponding to a function name
* suffix.
*
* \param[in] suffix A string.
* \return An `AMvalue` struct discriminant.
*/
AMvalueVariant AMvalue_discriminant(char const* suffix);
/**
* \brief Gets the object type tag corresponding to an object type label.
*
* \param[in] obj_type_label A string.
* \return An `AMobjType` enum tag.
*/
AMobjType AMobjType_tag(char const* obj_type_label);
#endif /* MACRO_UTILS_H */