[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [cdt-dev] AST: How to get full definition of macros?
|
If you have a binding for a macro, it will implement IMacroBinding. This
interface should provide what you need:
public interface IMacroBinding extends IBinding {
....
/**
* Returns the parameter names or <code>null</code> if this is
not a
* function style macro.
*/
char[][] getParameterList();
/**
* Returns the expansion of this macro definition, or
<code>null</code> if
* the definition is not
* available. For dynamic macros an exemplary image is returned.
* @since 5.0
*/
char[] getExpansion();
....
}
Markus.
> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Andrey Tretyakov
> Sent: Thursday, April 02, 2009 5:40 PM
> To: CDT General developers list.
> Subject: [cdt-dev] AST: How to get full definition of macros?
> Importance: Low
>
> I have one more question about AST.
>
> I have IASTName and IBinding for macros object. How to get
> its full definition?
>
> For example, for
>
> #define INT32_C(c) c
>
> I can retrieve only "INT32_C", but I want to get
> "INT32_C(c)". Is such API?
>
> Best regards,
> Andrey.
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>