Ejemplo n.º 1
0
int
__eh_rtime_match(void *rtime)
{
    void *info;
    __eh_matcher matcher;
    void *ret;
    info = *(__get_eh_info());
    matcher = ((__eh_info *)info)->match_function;

    passert(matcher != NULL,
	    err_printf("Internal Compiler Bug: No runtime type matcher."));

    ret = (*matcher)(info, rtime, (void *)0);
    return (ret != NULL);
}
Ejemplo n.º 2
0
int
__eh_rtime_match (void *rtime)
{
  void *info;
  __eh_matcher matcher;
  void *ret;

  info = *(__get_eh_info ());
  matcher = ((__eh_info *)info)->match_function;
  if (! matcher)
    {
#ifndef inhibit_libc
      fprintf (stderr, "Internal Compiler Bug: No runtime type matcher.");
#endif
      return 0;
    }
  ret = (*matcher) (info, rtime, (void *)0);
  return (ret != NULL);
}