This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
LEFTONE/core/locommon/null.c

21 lines
391 B
C
Raw Permalink Normal View History

#include "./null.h"
#include <assert.h>
#include <stdbool.h>
#include <stddef.h>
#include <msgpack.h>
void locommon_null_pack(const locommon_null_t* null, msgpack_packer* packer) {
assert(null != NULL);
assert(null != NULL);
msgpack_pack_nil(packer);
}
bool locommon_null_unpack(locommon_null_t* null, const msgpack_object* obj) {
assert(null != NULL);
return obj != NULL;
}