equal
deleted
inserted
replaced
33 /^#endif \/\* DEFINE_SQUIRREL_CLASS \*\// { if (squirrel_stuff == "true") { squirrel_stuff = "false"; next; } } |
33 /^#endif \/\* DEFINE_SQUIRREL_CLASS \*\// { if (squirrel_stuff == "true") { squirrel_stuff = "false"; next; } } |
34 { if (squirrel_stuff == "true") next; } |
34 { if (squirrel_stuff == "true") next; } |
35 |
35 |
36 { print $0; } |
36 { print $0; } |
37 |
37 |
|
38 # Ignore forward declarations of classes |
|
39 /^( *)class(.*);/ { next; } |
38 # We only want to have public functions exported for now |
40 # We only want to have public functions exported for now |
39 /^( *)class/ { |
41 /^( *)class/ { |
40 if (cls_level == 0) { |
42 if (cls_level == 0) { |
41 public = "false" |
43 public = "false" |
42 cls = $2 |
44 cls = $2 |
209 next |
211 next |
210 } |
212 } |
211 } |
213 } |
212 |
214 |
213 # Add a method to the list |
215 # Add a method to the list |
214 /^.*$/ { |
216 /^.*\(.*\).*$/ { |
215 if (cls_level != 1) next |
217 if (cls_level != 1) next |
216 |
218 |
217 is_static = match($0, "static") |
219 is_static = match($0, "static") |
218 if (match($0, "virtual")) { |
220 if (match($0, "virtual")) { |
219 virtual_class = "true" |
221 virtual_class = "true" |