I am trying to create a callback procedure to be passed to a C library (SDL2 mixer). My problem is that unless I use "-d:release" the callback procedure causes the program to crash.
Is it possible to compile the program in debug mode, but disable debug for that specific procedure?
Is it also possible to disable the garbage collector on that procedure, or ensure that it's not used?