eolian gen: update tests to cover var generation
This commit is contained in:
parent
0ee248fb86
commit
02aed9a043
|
@ -1,3 +1,11 @@
|
|||
const Foo: int = 5; [[doc for constant]]
|
||||
|
||||
var Bar: float = 10.3f; [[doc for global]]
|
||||
|
||||
var Baz: long; [[in header but not in source]]
|
||||
|
||||
var @extern Bah: double; // not generated
|
||||
|
||||
class Class_Simple {
|
||||
[[Class Desc Simple]]
|
||||
legacy_prefix: evas_object_simple;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
float Bar = 10.300000f;
|
||||
|
||||
Eina_Bool _class_simple_a_set(Eo *obj, Evas_Simple_Data *pd, int value);
|
||||
|
||||
|
|
|
@ -11,6 +11,26 @@ typedef Eo Class_Simple;
|
|||
#ifndef _CLASS_SIMPLE_EO_TYPES
|
||||
#define _CLASS_SIMPLE_EO_TYPES
|
||||
|
||||
#ifndef Foo
|
||||
/** doc for constant
|
||||
*
|
||||
* @ingroup Foo
|
||||
*/
|
||||
#define Foo 5
|
||||
#endif
|
||||
|
||||
/** doc for global
|
||||
*
|
||||
* @ingroup Bar
|
||||
*/
|
||||
extern float Bar;
|
||||
|
||||
/** in header but not in source
|
||||
*
|
||||
* @ingroup Baz
|
||||
*/
|
||||
extern long Baz;
|
||||
|
||||
|
||||
#endif
|
||||
/** Class Desc Simple
|
||||
|
|
|
@ -11,6 +11,26 @@ typedef Eo Class_Simple;
|
|||
#ifndef _CLASS_SIMPLE_EO_TYPES
|
||||
#define _CLASS_SIMPLE_EO_TYPES
|
||||
|
||||
#ifndef Foo
|
||||
/** doc for constant
|
||||
*
|
||||
* @ingroup Foo
|
||||
*/
|
||||
#define Foo 5
|
||||
#endif
|
||||
|
||||
/** doc for global
|
||||
*
|
||||
* @ingroup Bar
|
||||
*/
|
||||
extern float Bar;
|
||||
|
||||
/** in header but not in source
|
||||
*
|
||||
* @ingroup Baz
|
||||
*/
|
||||
extern long Baz;
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -56,6 +56,12 @@ typedef enum
|
|||
*/
|
||||
typedef Bar Alias;
|
||||
|
||||
/** Docs for var.
|
||||
*
|
||||
* @ingroup pants
|
||||
*/
|
||||
extern int pants;
|
||||
|
||||
/** Opaque struct docs. See @ref Foo for another struct.
|
||||
*
|
||||
* @ingroup Opaque
|
||||
|
|
|
@ -56,6 +56,12 @@ typedef enum
|
|||
*/
|
||||
typedef Bar Alias;
|
||||
|
||||
/** Docs for var.
|
||||
*
|
||||
* @ingroup pants
|
||||
*/
|
||||
extern int pants;
|
||||
|
||||
/** Opaque struct docs. See @ref Foo for another struct.
|
||||
*
|
||||
* @ingroup Opaque
|
||||
|
|
Loading…
Reference in New Issue