Haru Free PDF Library
handler.c
/*
* << Haru Free PDF Library 2.0.0 >> -- utils.h
*
* Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp>
* Copyright (c) 2007-2009 Antony Dovgal et al.
* Copyright (c) 2023 Dmitry Solomennikov
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appear in all copies and
* that both that copyright notice and this permission notice appear
* in supporting documentation.
* It is provided "as is" without express or implied warranty.
*
*/
#ifndef __HANDLER_H
#define __HANDLER_H
#include "
hpdf.h
"
#include <setjmp.h>
#include <stdio.h>
#ifdef __cplusplus
extern
"C"
{
#endif
jmp_buf env;
HPDF_HANDLER
(
void
)
demo_error_handler (
HPDF_STATUS
error_no,
HPDF_STATUS
detail_no,
void
*user_data)
{
printf (
"ERROR: error_no=0x%04X, detail_no=%u\n"
, (
HPDF_UINT
)error_no, (
HPDF_UINT
)detail_no);
longjmp(env, 1);
}
#ifdef __cplusplus
}
#endif
#endif
/* __HANDLER_H */
hpdf.h
HPDF_HANDLER
#define HPDF_HANDLER(A)
Definition:
hpdf.h:47
HPDF_UINT
unsigned int HPDF_UINT
Definition:
hpdf_types.h:45
HPDF_STATUS
unsigned long HPDF_STATUS
Definition:
hpdf_types.h:94
Generated by
1.9.1