tree-sitter/spec/spec_helper.cpp

7 lines
146 B
C++
Raw Normal View History

#include "spec_helper.h"
2013-12-15 19:33:34 -08:00
string src_dir() {
2014-02-18 09:07:00 -08:00
const char * dir = getenv("TREESITTER_DIR");
if (!dir) dir = getenv("PWD");
return dir;
2013-12-15 19:33:34 -08:00
}