Commit a2f0f545 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Remove the unimplemented macro POINTER_READ().

parent 339fc410
......@@ -10,14 +10,8 @@
#include "irloop.h"
#include "tv.h"
/**
* Ideally, this macro would check if size bytes could be read at
* pointer p. No generic solution.
*/
#define POINTER_READ(p, size) (p)
/* returns the kind of the thing */
firm_kind get_kind(const void *firm_thing)
{
return POINTER_READ(firm_thing, sizeof(firm_kind)) ? *(firm_kind *)firm_thing : k_BAD;
return *(firm_kind*)firm_thing;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment