-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
114 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* ---------------------------------- | ||
* | libmem - by rdbo | | ||
* | Memory Hacking Library | | ||
* ---------------------------------- | ||
*/ | ||
|
||
/* | ||
* Copyright (C) 2023 Rdbo | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License version 3 | ||
* as published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#ifndef LIBMEM_API_H | ||
#define LIBMEM_API_H | ||
|
||
/* Export prefix for functions */ | ||
#ifdef _MSC_VER | ||
/* MSVC */ | ||
# define LM_API_EXPORT __declspec(dllexport) | ||
#else | ||
/* GCC/Clang */ | ||
# define LM_API_EXPORT __attribute__((visibility("default"))) | ||
#endif | ||
|
||
/* Import prefix for functions */ | ||
#ifdef _MSC_VER | ||
# define LM_API_IMPORT __declspec(dllimport) | ||
#else | ||
# define LM_API_IMPORT extern | ||
#endif | ||
|
||
/* Resolve import/export */ | ||
#ifdef LM_EXPORT | ||
# define LM_API LM_API_EXPORT | ||
#else | ||
# define LM_API LM_API_IMPORT | ||
#endif | ||
|
||
/* Calling convention */ | ||
#define LM_CALL | ||
|
||
#endif |
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