Choco OS  V.0.16.9.0
Join to the chocolate world
oc_object.h File Reference

The file with helper macros for managing objects. More...

#include <oc_1word.h>
#include <stdbool.h>
#include <stdint.h>
#include <oc_assert.h>

Go to the source code of this file.

Macros

#define oC_OBJECTS_REGISTRATIONS_LIST(ADD_OBJECT)
 list of object registrations More...
 
#define oC_ObjectId_(Name)   oC_1WORD_FROM_2(oC_ObjectId_ , Name)
 returns name of the object id created for the object
 

Typedefs

typedef uint32_t oC_ObjectControl_t
 stores object control value More...
 

Enumerations

Functions

static oC_ObjectControl_t oC_CountObjectControl (void *ObjectPointer, oC_ObjectId_t ObjectId)
 counts object control for object More...
 
static oC_ObjectId_t oC_GetObjectId (oC_ObjectControl_t ObjectControl)
 returns id of object More...
 
static bool oC_CheckObjectControl (void *ObjectPointer, oC_ObjectId_t ObjectId, oC_ObjectControl_t ObjectControl)
 checks if object control is correct More...
 

Detailed Description


Author
Patryk Kubiak - (Created on: 30 08 2015 08:31:16)
Note
Copyright (C) 2015 Patryk Kubiak patry.nosp@m.k.ku.nosp@m.biak9.nosp@m.0@gm.nosp@m.ail.c.nosp@m.om
           This program is free software; you can redistribute it and/or modify
           it under the terms of the GNU General Public License as published by
           the Free Software Foundation; either version 2 of the License, or
           (at your option) any later version.

           This program is distributed in the hope that it will be useful,
           but WITHOUT ANY WARRANTY; without even the implied warranty of
           MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
           GNU General Public License for more details.

           You should have received a copy of the GNU General Public License
           along with this program; if not, write to the Free Software
           Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

Definition in file oc_object.h.