Skip to content

Instantly share code, notes, and snippets.

@yuzurihara
yuzurihara / main.py
Last active January 27, 2018 02:04
Embedding ChakraCore into Python apps.
# -*- coding: utf-8 -*-
# Hello World!
# see: https://github.com/Microsoft/ChakraCore/wiki/Embedding-ChakraCore
from ctypes import *
cc = cdll.LoadLibrary('ChakraCore')
# typedef void (CALLBACK *JsBackgroundWorkItemCallback)(_In_opt_ void *callbackState);
JsBackgroundWorkItemCallback = CFUNCTYPE(None, c_void_p)
# Copyright (c) 2014 yuzurihara. All rights reserved.
# Released under the BSD 3-Clause License.
# http://opensource.org/licenses/BSD-3-Clause
import os
import sys
import subprocess
import atexit
$ git push -u orign master