Cleanup use of macro inspection to use @typekind and @typeid macros.

This commit is contained in:
Christoffer Lerno
2023-11-18 23:35:11 +01:00
parent 87fdb5956e
commit d5281b10dd
13 changed files with 30 additions and 29 deletions

View File

@@ -177,7 +177,7 @@ const char[*] MAX_VARS @private = { [2] = 3, [4] = 5, [8] = 10 };
/**
* @require @is_instream(stream)
* @require $typeof(x_ptr).kindof == POINTER && $typeof(x_ptr).inner.kindof.is_int()
* @require @typekind(x_ptr) == POINTER && $typeof(x_ptr).inner.kindof.is_int()
**/
macro usz! read_varint(stream, x_ptr)
{
@@ -214,7 +214,7 @@ macro usz! read_varint(stream, x_ptr)
}
/**
* @require @is_outstream(stream)
* @require $typeof(x).kindof.is_int()
* @require @typekind(x).is_int()
**/
macro usz! write_varint(stream, x)
{