xtd_c - Reference Guide 0.2.0
object.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include "errors.h"
8 #include "types.h"
9 
23 struct xtd_object {
29 };
30 
32 typedef struct xtd_object xtd_object;
33 
34 #define XTD_OBJECT_TYPE \
35  (xtd_object())
36 
47 #define XTD_OBJECT(object) \
48  (XTD_TYPE_CAST(object, XTD_OBJECT_TYPE, xtd_object))
49 
71 
95 void xtd_object_destroy(xtd_object* value);
109 const char* xtd_object_to_string(const xtd_object* value);
145 size_t xtd_object_to_string_s(const xtd_object* value, char* string, size_t size);
void xtd_object_destroy(xtd_object *value)
Destroy the instance of the specfied object.
xtd_handle internal_handle
Internal handle.
Definition: object.h:28
Contains errors definitions.
Contains types definitions.
Represent an instance of the ultimate base object.
Definition: object.h:23
size_t xtd_object_to_string_s(const xtd_object *value, char *string, size_t size)
Returns a string that represents the specified object.
const char * xtd_object_to_string(const xtd_object *value)
Returns a string that represents the specified object.
xtd_object * xtd_object_create(void)
Create a new instance of the ultimate base object.
void * xtd_handle
Represent a pointer or a handle.
Definition: types.h:129