|
deck
This page is a stub for cy::Deck appearing soon: a clone of scatter/gather predecessor of cy::Row using std::vector.
menu
Here's a menu of pages on cy code.
license
See license and copyright for code here. For more context, see the cy page.
comments
Compared to a thorn demo, I explain cy code less: I care little whether folks use or grasp cy source. But since I aim to get ideas across, I reveal a point to code constructs so you see intentions. If you ask: What was this for? That's the only question I address: why a thing was done. If you what to know how code works or what loose ends remain, figure it out.
two space indent
Sorry about the two space indent format. If you don't like it, fix it yourself.
color coding
Library source code appears appears in amber (orange/brown): amber is_source(code* c);
Source .cpp code appears in red: void cy_logf(int, const char* f, ...) {
char temp[ 2048 + 4 ];
va_list args;
va_start(args,f);
vsnprintf(temp, 2048, f, args);
va_end(args);
temp[2048] = 0;
printf("%s\n", temp);
}
Sample test code is purple: o << "# purple=test green=stdout" << cy_newl;
Printed output on stdout is green: # purple=test green=stdout
I know these aren't the best color cues. (Amber and green might appear the same hue to color blind folks. I have excellent color discrimination myself.) |