Sha256: b10a991ff8e0d571b4395a206c4fd0adc600e2efadb0a08b15baf0b6db99365c

Contents?: true

Size: 666 Bytes

Versions: 3

Compression:

Stored size: 666 Bytes

Contents

#include "prostate.h"
#include "tmpllog.h"

TMPLPRO_LOCAL void log_state(struct tmplpro_state* state, int level, const char *fmt, ...) 
{
    va_list vl;
    va_start(vl, fmt);
    if (state->tag ==HTML_TEMPLATE_NO_TAG) {
      tmpl_log(level, "HTML::Template::Pro:");
    } else {
      tmpl_log(level, "HTML::Template::Pro:in %sTMPL_%s at pos " MOD_TD ": ",
	  (state->is_tag_closed ? "/" : ""), 
	   (state->tag>HTML_TEMPLATE_BAD_TAG && state->tag <=HTML_TEMPLATE_LAST_TAG_USED) ? TAGNAME[state->tag] : "", 
	   TO_PTRDIFF_T(state->tag_start - state->top));
    }
    tmpl_vlog(level, fmt, vl);
    va_end(vl);
}

/* 
 * Local Variables:
 * mode: c 
 * End: 
 */

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
html-template-pro-0.0.3 ext/html/template/prostate.inc
html-template-pro-0.0.2 ext/html/template/internal/prostate.inc
html-template-pro-0.0.1 ext/html/template/internal/prostate.inc