Revision 23839a6cb5c6ce1890674b83787f024bfdbf0c83 authored by Sergey Linev on 03 March 2015, 16:23:43 UTC, committed by Bertrand Bellenot on 04 March 2015, 08:35:14 UTC
1. Introduce central method where all kind of text drawings are handled. At this place decide which kind of rendering - plain text, simplify latex or normal MathJax is used 2. Implement correct size adjustment and alignment for all kinds of text output (with and without MathJax) 3. Support TMathText class - always MathJax will be used 4. Draw label in TPabeText 5. Avoid concurent calls of JSROOT.AssertPrerequisities Signed-off-by: Bertrand Bellenot <bertrand.bellenot@cern.ch>
1 parent 3cb3124
t977.cxx
/* -*- C++ -*- */
/*************************************************************************
* Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch)
*
* For the licensing terms see the file COPYING
*
************************************************************************/
#if defined(interp) && defined(makecint)
#pragma include "test.dll"
#else
#include "t977.h"
#endif
#ifdef interp
#include <exception>
#endif
#include <stdio.h>
void test(void (*f)(void)) {
try {
f();
}
catch(r_exception& x) {
printf("caught r_exception %s\n",x.what());
}
catch(r_space::r_space_exception& x) {
printf("caught r_space::r_space_exception %s\n",x.what());
}
catch(r_space::eh1::eh_exception1& x) {
printf("caught r_space::eh1::eh_exception1 %s\n",x.what());
}
catch(r_space::eh1::errorhandling::eh_exception& x) {
printf("caught r_space::eh1::errorhandling::eh_exception %s\n",x.what());
}
#ifdef interp
catch(G__exception& y) {
printf("caught G__exception %s %s\n",y.what(),y.classname());
}
#endif
catch(exception& x) {
printf("caught exception %s\n",x.what());
}
catch(int a) {
printf("caught int %d\n",a);
}
catch(float fl) {
printf("caught float %g\n",fl);
}
catch(double d) {
printf("caught double %g\n",d);
}
catch(long b) {
printf("caught long %ld\n",b);
}
catch(void* p) {
printf("caught void* %d\n",*(int*)p);
}
catch(...) {
printf("caught unknown exception\n");
}
}
int main() {
test(throw_std_exception);
test(throw_r_exception);
test(throw_r_space_exception);
test(throw_r_space_eh_exception);
test(throw_r_space_eh_errorhandling_exception);
test(throw_int);
test(throw_long);
test(throw_void);
test(throw_float);
test(throw_double);
return 0;
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...