is it possible to only parse everything thats marked with a macro

Open
#1,929 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp, csharp
Domain
compilers, tooling

Research direction

Start by reviewing the parser and P/Invoke binding-generation entry points, then trace how macros and declarations are represented and selected. Confirm the expected behavior for marked classes and functions, including unmarked declarations, and identify tests covering parsing or generated bindings. Done means the requested macro-only scope is defined and verified without affecting unrelated declarations.

Written by the indexing model from the issue text.

Description

i want to expose all my classes, struct, functions, etc.
is it possible for it to only translate if it finds a macro
and i only want it go generate P/invokes for them

ex:

API_CLASS() class foo { API_FUNCITON() void MyFunction(...) {} }

Dominant language
C#
Stars
3.4k
Forks
541
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mono/CppSharp

All issues in mono/CppSharp

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.