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

Yasm error: undefined symbol everywhere when trying to implement some C# code #212

Open
valentinbreiz opened this issue Dec 13, 2023 · 1 comment
Labels

Comments

@valentinbreiz
Copy link
Member

valentinbreiz commented Dec 13, 2023

https://gist.github.com/valentinbreiz/8b099c7acd93783e90d71e644f070519

Builds fine until it goes to YASM part

Edit: After a deeper investigation this method seems to be the problem:

private static int Str_Dump( ILuaState lua )
{
	lua.L_CheckType( 1, LuaType.LUA_TFUNCTION );
	lua.SetTop( 1 );
	var bsb = new ByteStringBuilder();
	LuaWriter writeFunc = 
		delegate(byte[] bytes, int start, int length)
	{
		bsb.Append(bytes, start, length);
		return DumpStatus.OK;
	};
	if( lua.Dump( writeFunc ) != DumpStatus.OK )
		return lua.L_Error( "unable to dump given function" );
	lua.PushString( bsb.ToString() );
	return 1;
}

Specially LuaWriter writeFunc = delegate(byte[] bytes, int start, int length)

@zarlo
Copy link
Member

zarlo commented Dec 13, 2023

@valentinbreiz as a work around have you tried a inline method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants