Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9081fd2304
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (30 sloc) 1.108 kb
/*
Copyright (C) 2011 aodbm authors,
This file is part of aodbm.
aodbm is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
aodbm is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "stdlib.h"
#include "assert.h"
#include "stdio.h"
#define AODBM_OS_ERROR() \
do { \
printf("\nfailed at %s:%i\n", __FILE__, __LINE__); \
perror("aodbm"); \
assert(0); \
exit(1); \
} while (0);
#define AODBM_CUSTOM_ERROR(msg) \
do { \
printf("\nfailed at %s:%i\nwith message: '%s'\n", __FILE__, __LINE__, msg); \
assert(0); \
exit(1); \
} while (0);
Jump to Line
Something went wrong with that request. Please try again.