automerge/automerge-c/test/macro_utils.h
Jason Kankiewicz 3ddde2fff2 Normalize the header include statement for all C
source files.
Normalize the header include statement within the documentation.
Limit `AMpush()` usage within the quickstart example to variable
assignment.
2022-08-22 22:28:23 -07:00

24 lines
576 B
C

#ifndef MACRO_UTILS_H
#define MACRO_UTILS_H
/* local */
#include <automerge-c/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 */