Skip to content
Permalink
Browse files

Add skeleton for example2

  • Loading branch information
sgolemon committed Jan 6, 2015
1 parent c385277 commit 20dc4ef8243408b3624e14f50d4357bd511c9988
Showing with 24 additions and 0 deletions.
  1. +3 −0 example2/config.cmake
  2. +19 −0 example2/ext_example2.cpp
  3. +2 −0 example2/ext_example2.php
@@ -0,0 +1,3 @@
HHVM_EXTENSION(example2 ext_example2.cpp)
HHVM_SYSTEMLIB(example2 ext_example2.php)

@@ -0,0 +1,19 @@
#include "hphp/runtime/base/base-includes.h"

namespace HPHP {
/////////////////////////////////////////////////////////////////////////////

class Example2Extension : public Extension {
public:
Example2Extension(): Extension("example2", "1.0") {}

void moduleInit() override {

loadSystemlib();
}
} s_example2_extension;

HHVM_GET_MODULE(example2);

/////////////////////////////////////////////////////////////////////////////
} // namespace HPHP
@@ -0,0 +1,2 @@
<?hh

0 comments on commit 20dc4ef

Please sign in to comment.
You can’t perform that action at this time.