Files
Xenia-Canary/src/xenia/kernel/util/export_table_pre.inc
2013-11-01 16:23:40 -07:00

35 lines
1.2 KiB
PHP

/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. *
******************************************************************************
*/
/**
* Pre-include file for an export table.
* Use this to build tables of exports:
*
* // Build the export table used for resolution.
* #include <xenia/kernel/util/export_table_pre.inc>
* static KernelExport my_module_export_table[] = {
* #include <xenia/kernel/my_module/my_module_table.inc>
* };
* #include <xenia/kernel/util/export_table_post.inc>
* export_resolver_->RegisterTable(
* "my_module.xex",
* my_module_export_table, XECOUNT(my_module_export_table));
*/
#define XE_EXPORT(module, ordinal, name, type, flags) \
{ \
ordinal, \
KernelExport::type, \
flags, \
#name, \
}
#define FLAG(t) kXEKernelExportFlag##t