Dmitry Matveyev

Results 95 comments of Dmitry Matveyev

This is a good idea, I also wanted to implement this but never got to the specifics. I have several questions regarding this idea: - In the very first example...

Points 2,3,4 - clear. 1 - According to comment from raysan in your PR, `free(NULL)` is a valid C, I assume that we don't need to check for nil values...

Yeah, I think this is good. And we probably don't need to declare ` proc UnloadShader(x: Shader) {.cdecl, importc, header: raylibHeader.}` and use already present `unloadShader` (I don't think we...

https://nim-lang.org/docs/destructors.html#hook-generation Here it says that you need to declare a destructor before "use", not necessarily right after type declaration, we should be okay.

Alright, thanks! You can join `nimraylib_now:matrix.org` or write me on discord GreenFork#1871 if you have any questions

I got this link to join https://matrix.to/#/#nimraylib_now:matrix.code0.xyz on matrix

Now when I think of it, maybe there's a solution to do several `#define` statements that would disable every repeating import in other header files. For example your case is...

Let's see if someone on the forum can help us https://forum.nim-lang.org/t/8704

It could be connected to that importing nimraylib_now requires these flags: https://github.com/greenfork/nimraylib_now/blob/920240c776777b125080aa71e01e6472f4899cf7/src/nimraylib_now/raylib_build_static.nim#L75-L78 And somehow it messes up asm instructions in arraymancer. I don't really have a good context on what...

Thank you for your kind words! Regarding your request, do I understand correctly that you would like to link a separate [raudio.c](https://github.com/raysan5/raylib/blob/master/src/raudio.c) file with `RAUDIO_STANDALONE` option and use the [header...