Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
#define kAssemblyOf (   SYMBOL)

Returns the kAssembly object associated with the specified assembly symbol.

This macro is used to access assembly information by compile-time symbol name. E.g.

#include <kApi/kApiLib.h>
void PrintCoreAssemblyInfo()
{
printf("Assembly name: %s\n", kAssembly_Name(assembly));
printf("Type count: %u\n", (k32u) kAssembly_TypeCount(assembly));
}

Use of this macro requires that the header file defining the specified assembly symbol has been included. For example, kAssemblyOf(kApiLib) requires inclusion of <kApi/kApiLib.h>

Parameters
SYMBOLAssembly symbol, such as kApiLib.
Returns
kAssembly object representing metadata about the specified assembly.