Browse Source

I tried some stuff.

master
Cameron Weinfurt 3 years ago
parent
commit
e0faad2f92
  1. 8
      java.m4

8
java.m4

@ -1,9 +1,7 @@
define(`CLASS_NAME',`public class $1 {
CLASS_FIELDS(shift($@))
}')
define(`CLASS_FIELDS',`ifelse($1,,` ',`
public int $1;
CLASS_FIELDS(shift($@))')')
CLASS_NAME(test,foo,bar,baz,tj)
private $1 $2;
CLASS_FIELDS(shift(shift($@)))')')
CLASS_NAME(test,String,str,int,num)
Loading…
Cancel
Save