Skip to content

Add insertion points for plugins#23

Open
gregschlom wants to merge 2 commits into
booyah:masterfrom
gregschlom:master
Open

Add insertion points for plugins#23
gregschlom wants to merge 2 commits into
booyah:masterfrom
gregschlom:master

Conversation

@gregschlom
Copy link
Copy Markdown

This pull request adds two insertion points for plugins:

imports: #import directives
global_scope: Declarations that belong at the top level. Appears at the very end of the file.

Each insertion point appears in both the .pb.m file and the .pb.h.

I could have added other insertion points inside classes, but I do not need that feature for the moment, so I'd rather avoid coding something blindly.

As a comparison, here are the insertion points generated by the C++ protobuf compiler.

@epreston
Copy link
Copy Markdown

I've integrated this feature into the fork I'm maintaining. Did you find any need for other insertion points ?

Packetdancer pushed a commit to Packetdancer/protobuf-objc that referenced this pull request Feb 4, 2015
Packetdancer pushed a commit to Packetdancer/protobuf-objc that referenced this pull request Feb 4, 2015
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

Successfully merging this pull request may close these issues.

2 participants