• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
method list strangeness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

method list strangeness


  • Subject: method list strangeness
  • From: "Wesley Smith" <email@hidden>
  • Date: Sat, 7 Oct 2006 13:37:43 -0700

Hi,
I'm seeing some strangeness in the method listing for some of my C
files.  The following code:

static int Jitobj___tostring(lua_State *L)
{
	Jitobj *p_obj = lua_touserdata(L, 1);
	lua_pushfstring(L, "%s: %p", jit_object_classname(*p_obj)->s_name, p_obj);

	return 1;
}

static const luaL_reg Jitobj_meta[] =
{
	TABLE_ENTRY(Jitobj, object_method),
	TABLE_ENTRY(Jitobj, attribute),
	TABLE_ENTRY(Jitobj, isattribute),
	TABLE_ENTRY(Jitobj, getattribute),
	TABLE_ENTRY(Jitobj, __gc),
	TABLE_ENTRY(Jitobj, __tostring),
	{NULL, NULL}
};

static const luaL_reg Jitobj_lib[] =
{
	TABLE_ENTRY(Jitobj, new),
	{NULL, NULL}
};

static const char * meta__index[] =  ...

where TABLE_ENTRY is #define TABLE_ENTRY(PREFIX, NAME)		{ #NAME,
PREFIX##_##NAME }

shows up in the top bar of the window where all of the file's methods
are lsited as:

....
Jitobj___tostring
TABLE_ENTRY
TABLE_ENTRY
...

Instead of showing the names of the static arrays, it shows the name
of the macros used to populate the arrays.  Is this supposed to
happen?

thanks,
wes
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: method list strangeness
      • From: David Dunham <email@hidden>
  • Prev by Date: Re: Xcode comments
  • Next by Date: Re: Xcode comments
  • Previous by thread: Re: Xcode comments
  • Next by thread: Re: method list strangeness
  • Index(es):
    • Date
    • Thread