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

KeraLua LuaDebug properties all return the same data #19

Closed
mandrewpowers opened this issue Mar 22, 2017 · 1 comment
Closed

KeraLua LuaDebug properties all return the same data #19

mandrewpowers opened this issue Mar 22, 2017 · 1 comment

Comments

@mandrewpowers
Copy link

Every property is returning pname instead of using their respective string pointers. I noticed when trying to get the source of a function call in my project.

src/KeraLua/LuaDebug.cs:

		public string name
		{
			get
			{
				return new CharPtr (pname).ToString ();
			}
		}

		public string namewhat
		{
			get
			{
				return new CharPtr (pname).ToString ();
			}
		}

		public string source
		{
			get
			{
				return new CharPtr (pname).ToString ();
			}
		}

		public string shortsrc
		{
			get
			{
				return new CharPtr (pname).ToString ();
			}
}
@mandrewpowers
Copy link
Author

mandrewpowers commented Mar 22, 2017

I created a pull request that should fix it.
Edit: Seems to fix it (http://i.imgur.com/3uKi7Pv.png).

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

No branches or pull requests

2 participants