X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=bootcensus;a=blobdiff_plain;f=src%2Flibc%2Fsetjmp.h;fp=src%2Flibc%2Fsetjmp.h;h=c92e93d6bdd6b96ae98e7c9d2774484b8a7f4c70;hp=0000000000000000000000000000000000000000;hb=78e3e75fc7b5838d0261c876d00e1b8c3e0bcfe0;hpb=7b6f6de2124e28ae7da5599a7cdaf2c171c4f15e diff --git a/src/libc/setjmp.h b/src/libc/setjmp.h new file mode 100644 index 0000000..c92e93d --- /dev/null +++ b/src/libc/setjmp.h @@ -0,0 +1,26 @@ +/* +256boss - bootable launcher for 256byte intros +Copyright (C) 2018-2019 John Tsiombikas + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program 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 General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ +#ifndef SETJMP_H_ +#define SETJMP_H_ + +typedef unsigned long jmp_buf[5]; + +int setjmp(jmp_buf buf); +void longjmp(jmp_buf buf, int val); + +#endif /* SETJMP_H_ */