Skip to content

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

@valentinbreiz

Description

@valentinbreiz

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions