HbbTv  17.9.0
Open source HBBTV engine
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Macros | Typedefs | Functions
object.h File Reference

Generic object class. More...

#include <stddef.h>
#include <assert.h>
#include "hbbtv_js.h"

Go to the source code of this file.

Data Structures

struct  S_JS_OBJ_VTAB
 
struct  s_obj_reference
 
struct  S_JS_OBJECT
 

Macros

#define JS_CHECK_OBJECT(o, c)
 
#define JS_INC_OBJ_REF(o)   (o == NULL) ? HBBTV_JSObject_DbgNull(__FILE__, __LINE__) : HBBTV_JSObject_incref(o)
 
#define HBBTV_UNUSED_OBJ(x)   if (x) {}
 

Typedefs

typedef struct s_obj_reference S_OBJ_REFERENCE
 

Functions

void * HBBTV_JSObjectCreate (S_JS_OBJ_VTAB *vtab)
 Initialise an object. More...
 
void * HBBTV_JSObject_DbgNull (char *file, int line)
 

Detailed Description

Generic object class.

Date
01/01/2013
Author
Adam Sturtridge

Macro Definition Documentation

#define JS_CHECK_OBJECT (   o,
 
)
Value:
assert(((o) != NULL) && \
((S_JS_OBJECT *)(o))->vtab == (c))
Definition: object.h:57

Function Documentation

void* HBBTV_JSObjectCreate ( S_JS_OBJ_VTAB vtab)

Initialise an object.

Parameters
obj- the object to initialise
vtab- the object's virtual function table