Miscellany
public text v1 · immutable//in main.c
#include "testpicture.h"
int main()
{
for(int i = 0; i < 256; i++)
palette_mem[i] = testpicturePal[i];
while(1){}
return 0;
}
//in header
#ifndef __TESTPICTURE__
#define __TESTPICTURE__
#define testpicturePalLen 512
extern const unsigned short testpicturePal[256];
#endif // __TESTPICTURE__
//in other c file
const unsigned short testpicturePal[256]=
{
0x0000,0x7FFF,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
...
};