github.com/igggame/nebulas-go@v2.1.0+incompatible/nf/nvm/v8/lib/random.h (about)

     1  // the go-nebulas library is free software: you can redistribute it and/or
     2  // modify it under the terms of the GNU General Public License as published by
     3  // the Free Software Foundation, either version 3 of the License, or
     4  // (at your option) any later version.
     5  //
     6  // the go-nebulas library is distributed in the hope that it will be useful,
     7  // but WITHOUT ANY WARRANTY; without even the implied warranty of
     8  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     9  // GNU General Public License for more details.
    10  //
    11  // You should have received a copy of the GNU General Public License
    12  // along with the go-nebulas library.  If not, see
    13  // <http://www.gnu.org/licenses/>.
    14  //
    15  #ifndef _NEBULAS_NF_NVM_V8_LIB_RANDOM_CALLBACK_H_
    16  #define _NEBULAS_NF_NVM_V8_LIB_RANDOM_CALLBACK_H_
    17  
    18  #include <v8.h>
    19  using namespace v8;
    20  
    21  void NewRandomInstance(Isolate *isolate, Local<Context> context,
    22                             void *handler);
    23  // void NewNativeRandomFunction(Isolate *isolate,
    24  //                               Local<ObjectTemplate> globalTpl);
    25  void RandomCallback(const v8::FunctionCallbackInfo<v8::Value> &info);
    26  #endif