File: cmserrorhandling.cpp

package info (click to toggle)
scribus 1.4.8%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 244,532 kB
  • sloc: cpp: 274,439; xml: 12,534; python: 3,448; ansic: 3,438; makefile: 1,201; perl: 95; sh: 41
file content (19 lines) | stat: -rw-r--r-- 532 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
For general Scribus (>=1.3.2) copyright and licensing information please refer
to the COPYING file provided with the program. Following this notice may exist
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/

#include "cmserrorhandling.h"
#include <iostream>

jmp_buf cmsJumpBuffer;

int cmsErrorHandler(int /*ErrorCode*/, const char *ErrorText)
{
	std::cerr << "Littlecms : " << ErrorText << std::endl;
	longjmp(cmsJumpBuffer, 1);
	return 1;
}