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

🐛 Fix dub test missing strcmp #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JesseKPhillips
Copy link
Contributor

@JesseKPhillips JesseKPhillips commented Jul 19, 2020

$ dub test

luad/stack.d(588,33): Error: undefined identifier strcmp

This is only a partial fix for the Unittest build not working. The other error I have not been able to track down the cause... I'm slightly leaning toward the attributes being assigned "pure nothrow @nogc @safe"

luad/stack.d(183,3): Error: static assert: "No Lua type defined for lua_State*"
luad/stack.d(224,23): instantiated from here: luaTypeOf!(lua_State*)
luad/stack.d(378,10): instantiated from here: getValue!(lua_State*, argumentTypeMismatch)
luad/conversions/functions.d(215,13): instantiated from here: getArgument!(extern (C) int function(lua_State*) pure nothrow @nogc @safe, 0)
luad/conversions/functions.d(248,23): ... (1 instantiations, -v to show) ...
luad/stack.d(133,15): instantiated from here: pushFunction!(extern (C) int function(lua_State*) pure nothrow @nogc @safe)
luad/stack.d(626,11): instantiated from here: pushValue!(extern (C) int function(lua_State*) pure nothrow @nogc @safe)

Rather than accepting the C function as a LuaFunction, it is trying to convert the lua_state* argument. See: #112

luad/stack.d(588,33): Error: undefined identifier strcmp
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