18 lines
538 B
C
18 lines
538 B
C
#pragma once
|
|
#include <MESA/MESA_htable.h>
|
|
#include <assert.h>
|
|
inline int __wrapper_MESA_htable_set_opt_int(MESA_htable_handle table, enum MESA_htable_opt opt_type, unsigned int value)
|
|
{
|
|
int ret = MESA_htable_set_opt(table, opt_type, &value, (int)(sizeof(value)));
|
|
assert(ret == 0);
|
|
return ret;
|
|
}
|
|
|
|
inline int __wrapper_MESA_htable_set_opt_func(MESA_htable_handle table, enum MESA_htable_opt opt_type, void * val, size_t len)
|
|
{
|
|
int ret = MESA_htable_set_opt(table, opt_type, val, (int)len);
|
|
assert(ret == 0);
|
|
return ret;
|
|
}
|
|
|