Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nim bindings #199

Closed
wants to merge 5 commits into from
Closed

Nim bindings #199

wants to merge 5 commits into from

Conversation

Hypnootika
Copy link
Contributor

Add Nim bindings for libmem C library

This commit introduces Nim bindings for the libmem C library, facilitating the integration of libmem's functionalities into Nim projects. The bindings were primarily generated using Futhark and have been refined for ease of use and integration.

Key components of this addition include:

  • The Nim wrapper (release/nimlibmem.nim) that interfaces with the libmem C library.
  • The dynamic library file (src/libmem.dll) necessary for runtime execution.
  • A suite of tests located in the tests directory to ensure the bindings' correctness and functionality.

Users are advised to copy release/nimlibmem.nim into their project directory and place libmem.dll into a suitable location, adjusting the DLL path in nimlibmem.nim as needed.

Further documentation on generating these bindings from the C library using Futhark, along with refinement steps, will be provided soon.

This commit introduces Nim bindings for the `libmem` C library, facilitating the integration of `libmem`'s functionalities into Nim projects. The bindings were primarily generated using Futhark and have been refined for ease of use and integration.

Key components of this addition include:
- The Nim wrapper (`release/nimlibmem.nim`) that interfaces with the `libmem` C library.
- The dynamic library file (`src/libmem.dll`) necessary for runtime execution.
- A suite of tests located in the `tests` directory to ensure the bindings' correctness and functionality.

Users are advised to copy `release/nimlibmem.nim` into their project directory and place `libmem.dll` into a suitable location, adjusting the DLL path in `nimlibmem.nim` as needed.

Further documentation on generating these bindings from the C library using Futhark, along with refinement steps, will be provided soon.
…_partial.lib which is not there anymore and not needed
…at made it possible to use "LM_EnumModules" and the Ex version.

The only things i cant get to work are:

LM_UnloadModuleEx, LM_LoadModuleEx and LM_UnloadModule.

Additionally i fixed some pathes
@Hypnootika
Copy link
Contributor Author

Closing this. This PR got recreated on my Github-Profile:
https://github.com/Hypnootika/Nim_Libmem

@Hypnootika Hypnootika closed this Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant