Esempio n. 1
0
FAKE_API const char * fkgetcurcode(fake * fk)
{
	const char * filename = fkgetcurfile(fk);
	int line = fkgetcurline(fk);

	return fkgetfilecode(fk, filename, line);
}
Esempio n. 2
0
void debuging::show_debug_code(fake * fk, int rid, int frame, int range)
{
	int curline = fkgetcurlinebyroutinebyframe(fk, rid, frame);
	for (int i = curline - range; i <= curline + range; i++)
	{
		if (i > 0)
		{
			const char * code = fkgetfilecode(fk, fkgetcurfilebyroutinebyframe(fk, rid, frame), i);
			if (code)
			{
				printf("%s%d\t%s", curline == i ? "*" : "", i, code);
			}
		}
	}
	printf("\n");
}