Main Page   Class Hierarchy   Compound List   File List   Header Files   Compound Members   File Members  

legOS/include/persistent.h File Reference

definitions for persistent data. More...


Defines

#define __persistent
Define storage persistent across different runs of a program. More...


Detailed Description

definitions for persistent data.

Author(s):
Eddie C. Dost <ecd@skynet.be>

Define Documentation

#define __persistent ()

Define storage persistent across different runs of a program.

This macro is used to mark initialized data (doesn't apply to uninitialized data) as `persistent' data. This data will be saved across different runs of the program.

Usage: You should insert __persistent between the variable name and equal sign followed by value, e.g:

static int counter __persistent = 0; static char data[] __persistent = { 0x32, 0x36, ... };

legOS-0.2.4 is released under the Mozilla Public License. Original code copyright 1998-1999 by the authors.