I’m working on a pet project on Windows (MSVC 2019 Community) that intend to create a DLL that is to be invoked from q.exe.
I found that krr/orr didn’t seem to work as advertised in the documentations.
Sample code:
/// testdll.cpp
#define KXVER 3
#include <k.h>
char *msg{ “Test error!” };
extern “C” __declspec(dllexport) K test(K) { return krr(msg); }
/// test.q
test:testdll 2:(
test;1)
test / does not report error as expected
According the documentation, krr is supposed to report error in q, but it didn’t. May I know if there is anything with my understanding about krr/orr?