From ab18c5072c6004537cb579e1bd472f927572369e Mon Sep 17 00:00:00 2001 From: apla Date: Sun, 8 Mar 2015 11:11:26 +0300 Subject: [PATCH] no more libclang error --- node/clang-project.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/node/clang-project.js b/node/clang-project.js index 1d7fcc5..a85991a 100644 --- a/node/clang-project.js +++ b/node/clang-project.js @@ -1,4 +1,9 @@ -var libclang = require('libclang'); +var libclang = {}; +try { + require('libclang'); +} catch (err) { + return; +} var Index = libclang.Index, Cursor = libclang.Cursor,