Thank you for the valuable comment and i'm glad that you like it.
although it's my bad habit inherited from coding with C++, I agree it's always better not to use macros.
one note to mention in fact I tried to use winapi before and it would work,
but the functions as per ONNXRuntime libraries were not nakedly exported
with C declarations as one would expect, thus to be used with cdecl (where the caller is
responsible for clearing the stack on return if i'm not wrong),
instead, they were wrapped inside a C struct with stdcall calling convention
which would imply that the callee function is responsible for clearing the stack on return,
the only cdecl exported function was OrtGetApiBase() which will return pointer to that struct of functions,
I'm not sure of the difference between Windows vs POSIX based systems in terms of
calling behavior in this particular case but I think it won't be necessary to let calls from
FPC to the struct wrapped functions be responsible for stack clearing.
I have checked Dr Schuler's NN library and I must say i'm so much impressed!,
I'm also researching with NN and was do something similar with pascal in a desperate attempt
to UnPython the world during the pandemic!, I would also be so much happy to contribute if the project is open to contributions.
In an unrelated matter i'm using a very old account here that I figured still working, but i cannot modify the profile data that was placed that time, is there any way to do so? the "Profile=>Account Settings" menu doesn't open all the profile information for editing!