Skip to content
Mark Johnson edited this page Mar 8, 2018 · 5 revisions

<-- 'List of Themes'

<-- 'List of Projects'


jssqlite 20120209

The original source code can be found in the archive directory

This function is now DEPRECATED because is not reentrant (not thread safe);
 use spatialite_init_ex() for all new development.
/* definition to expand macro then apply to pragma message */
#define VALUE_TO_STRING(x) #x
#define VALUE(x) VALUE_TO_STRING(x)
#define VAR_NAME_VALUE(var) #var "="  VALUE(var)
// print out values
#pragma message(VAR_NAME_VALUE(HAVE_SPATIALITE41))
#pragma message(VAR_NAME_VALUE(HAVE_RASTERLITE2))
/*
#if HAVE_SPATIALITE41 == 1
 /* Since 4.1.1: spatialite_init(1) is now DEPRECATED because is not reentrant (not thread safe) */
 /* Initializes a SpatiaLite connection. */
    void *cache = spatialite_alloc_connection();
    spatialite_init_ex((sqlite3 *)h->sqlite,cache,0);
#pragma message(VAR_NAME_VALUE(HAVE_SPATIALITE41))
#if HAVE_RASTERLITE2 == 1
    /* Initializes the (Rasterlite2) library */
    rl2_init((sqlite3 *)h->sqlite,0);
#pragma message(VAR_NAME_VALUE(HAVE_RASTERLITE2))
#endif
*/


  • code changes:
    • TODO

2014-05-05: Mark Johnson, Berlin Germany


Clone this wiki locally