-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Stephen Gutekanst <[email protected]>
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#ifndef MACH_CORE_H_ | ||
#define MACH_CORE_H_ | ||
|
||
#if defined(MACH_SHARED_LIBRARY) | ||
# if defined(_WIN32) | ||
# if defined(MACH_IMPLEMENTATION) | ||
# define MACH_EXPORT __declspec(dllexport) | ||
# else | ||
# define MACH_EXPORT __declspec(dllimport) | ||
# endif | ||
# else // defined(_WIN32) | ||
# if defined(MACH_IMPLEMENTATION) | ||
# define MACH_EXPORT __attribute__((visibility("default"))) | ||
# else | ||
# define MACH_EXPORT | ||
# endif | ||
# endif // defined(_WIN32) | ||
#else // defined(MACH_SHARED_LIBRARY) | ||
# define MACH_EXPORT | ||
#endif // defined(MACH_SHARED_LIBRARY) | ||
|
||
#if !defined(MACH_OBJECT_ATTRIBUTE) | ||
#define MACH_OBJECT_ATTRIBUTE | ||
#endif | ||
#if !defined(MACH_ENUM_ATTRIBUTE) | ||
#define MACH_ENUM_ATTRIBUTE | ||
#endif | ||
#if !defined(MACH_STRUCTURE_ATTRIBUTE) | ||
#define MACH_STRUCTURE_ATTRIBUTE | ||
#endif | ||
#if !defined(MACH_FUNCTION_ATTRIBUTE) | ||
#define MACH_FUNCTION_ATTRIBUTE | ||
#endif | ||
#if !defined(MACH_NULLABLE) | ||
#define MACH_NULLABLE | ||
#endif | ||
|
||
#include <stdint.h> | ||
#include <stddef.h> | ||
|
||
// TODO: implement this section | ||
// see e.g. https://github.com/webgpu-native/webgpu-headers/blob/main/webgpu.h | ||
// for how to write a modern C API header | ||
|
||
#endif // !defined(MACH_SKIP_DECLARATIONS) | ||
|
||
#ifdef __cplusplus | ||
} // extern "C" | ||
#endif | ||
|
||
#endif // MACH_CORE_H_ |