diff options
| author | TitanSnow <[email protected]> | 2017-05-10 07:05:41 +0800 |
|---|---|---|
| committer | TitanSnow <[email protected]> | 2017-05-10 07:52:11 +0800 |
| commit | c8a1edb15828a188b2c2e2139a366aad006aaf0e (patch) | |
| tree | 9f568a58f65e6846894a744d9f3e0ec9ece178ac /xmake | |
| parent | d80214fcfaa2f90b2ba6ec6991329d38901cff66 (diff) | |
add module readline
Diffstat (limited to 'xmake')
| -rw-r--r-- | xmake/core/sandbox/modules/import/lib/readline.lua | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/xmake/core/sandbox/modules/import/lib/readline.lua b/xmake/core/sandbox/modules/import/lib/readline.lua new file mode 100644 index 000000000..d1b721ee2 --- /dev/null +++ b/xmake/core/sandbox/modules/import/lib/readline.lua @@ -0,0 +1,36 @@ +--!The Make-like Build Utility based on Lua +-- +-- Licensed to the Apache Software Foundation (ASF) under one +-- or more contributor license agreements. See the NOTICE file +-- distributed with this work for additional information +-- regarding copyright ownership. The ASF licenses this file +-- to you under the Apache License, Version 2.0 (the +-- "License"); you may not use this file except in compliance +-- with the License. You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- Copyright (C) 2015 - 2017, TBOOX Open Source Group. +-- +-- @author TitanSnow +-- @file readline.lua +-- + +local sandbox_readline = sandbox_readline or {} + +-- check feature readline +if not os.versioninfo().features.readline then + os.raise("readline not included") +end + +-- inherit some builtin interfaces +sandbox_readline.readline = readline.readline + +-- return module +return sandbox_readline |
