Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: mojo/public/bindings/generators/cpp_templates/struct_definition

Issue 65933002: Mojo: Unify the disparate source and header files into 3 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mistaken /n's Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // static 1 // static
2 $CLASS* $CLASS::New(mojo::Buffer* buf) { 2 $CLASS* $CLASS::New(mojo::Buffer* buf) {
3 return new (buf->Allocate(sizeof($CLASS))) $CLASS(); 3 return new (buf->Allocate(sizeof($CLASS))) $CLASS();
4 } 4 }
5 5
6 $CLASS::$CLASS() { 6 $CLASS::$CLASS() {
7 _header_.num_bytes = sizeof(*this); 7 _header_.num_bytes = sizeof(*this);
8 _header_.num_fields = $NUM_FIELDS; 8 _header_.num_fields = $NUM_FIELDS;
9 } 9 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698